开发者

What's the difference between service context and object context?

开发者 https://www.devze.com 2023-03-03 04:08 出处:网络
I am having trouble in understanding what is the difference between the service context and the object context.

I am having trouble in understanding what is the difference between the service context and the object context.

I mean, where are they used? What is the basic diffe开发者_StackOverflow社区rence?


ObjectContext is a class that is generated inside the generated DomainService class that you made.

while

Object Services is a component of the Entity Framework that enables you to query, insert, update, and delete data, expressed as strongly typed CLR objects that are instances of entity types. Object Services supports both Language-Integrated Query (LINQ) and Entity SQL queries against types that are defined in an Entity Data Model (EDM). Object Services materializes returned data as objects, and propagates object changes back to the data source. It also provides facilities for tracking changes, binding objects to controls, and handling concurrency. Object Services is implemented by classes in the System.Data.Objects and System.Data.Objects.DataClasses namespaces.

0

精彩评论

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

关注公众号