Entity Framework Code First makes it very easy to access local (first level) cache: you just access the DbSet<T>.Local property. This way, no query is sent to the database, only performed in already loaded entities. If you want to first search local cache, then the database, if no entries are found, you can use this…
Continue readingEntity Framework
Road map and features of EF4, EF5, EF6
EntityFramework 6 EntityFramework 6 support to use Store Procedure at the time code first approach of EF. Now we can use Store procedure with EF 6. EntityFramework 5 In EF5, now EF check for the Database installed on server before creating the Database using Code First Approach of EF. Earlier it give error when we…
Continue readingWhats new in EF 6
Stored Procedures for CUD EF 6 gives code-first developers something developers using the visual designer have always had: The ability to use stored procedures when you call SaveChanges to perform the updates to the tables represented by the entity classes. But don’t get your hopes up: There’s still nothing in code-first development like the function…
Continue readingObjectContext Vs DbContext in EF
ObjectContext Vs DbContext: DbContext is a wrapper around ObjectContext, it’s a simplified version of ObjectContext. ObjecetContext is lightweight as compare to DbContext. ObjectContext support Model First and Database First approach of Entity Framework (EF) whereas DbContext support Database First, Model First as well as Code First approach
Continue reading