开发者

LINQ to SQL -Internals -C#

Does LINQ to SQL work in connected environment or disconnected environment? I mean if you compile the query it builds expression query and the query is sent down to sql server ,there it is translated into T-SQL statement and executed and the final result is sent back to the C开发者_开发知识库# code.I hope it is working in connected environment.Is there any framework operates LINQ to SQL in disconnected fashion?


It is connected when it needs to be - i.e. when querying data and when submit changes. If you supply a connection (to the overloaded constructor) that connection will be re-used, otherwise IIRC connection-pooling is used.

For fully disconnected, there are things like "sync services", which builds a local copy of the data.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜