What is EF Data Access Architecture?

Technology CommunityCategory: Entity FrameworkWhat is EF Data Access Architecture?
VietMX Staff asked 3 years ago

The ADO.NET Framework supports two models of Data Access Architecture:

  • Connection Oriented
  • Disconnected

EF uses the Disconnected model (doesn’t leave a connection open). Since you work with data and make desired changes and then you perform theĀ SaveChanges. In N-tier applications a context either produces entities or saves entities, not both. It produces entities that get serialized and the context is disposed. Entities that return from the client application are deserialized and re-attached to new context instance that saves their changes.