这些表是没有关系的[/quote]
无关的话数据库也无法优化查询,多次查和一次查差不了多少的[/quote]
数据库是同一个只是表不一样,多次查询的话要多次连接数据库,性能还是差很多[/quote]
Because an open connection to the database consumes a valuable resource, the Entity Framework opens and closes the database connection only as needed.
http://msdn.microsoft.com/en-us/library/cc853327%28v=vs.110%29.aspx[/quote]
非常感谢,就是要这种效果
这些表是没有关系的[/quote]
无关的话数据库也无法优化查询,多次查和一次查差不了多少的[/quote]
数据库是同一个只是表不一样,多次查询的话要多次连接数据库,性能还是差很多[/quote]
Because an open connection to the database consumes a valuable resource, the Entity Framework opens and closes the database connection only as needed.
http://msdn.microsoft.com/en-us/library/cc853327%28v=vs.110%29.aspx
可以的,关联查询,或做成视图关联然后调用视图
1\"select * From tb1;select * From tb2;..." DataSet 对应 .Table[0] .Table[1]...
2\
create view v1
as
select f1,f2,f3 From tb1
Union
select f1,f2,f3 From tb2
select * From v1