摘要:Add Entity Graph using DbContext: Adding entity graph with all new entities is a simple task. We can use DbSet.Add() method to attach a whole entity g 阅读全文
Entity Framework Tutorial Basics(26):Add Entity Graph
2016-07-07 10:25 by 追忆似水流年, 169 阅读, 0 推荐, 收藏, 编辑Entity Framework Tutorial Basics(25):Delete Single Entity
2016-07-07 10:23 by 追忆似水流年, 156 阅读, 0 推荐, 收藏, 编辑
摘要:Delete Entity using DBContext in Disconnected Scenario: We used the Entry() method of DbContext to mark EntityState as Modified in the previous chapte 阅读全文
Entity Framework Tutorial Basics(24):Update Single Entity
2016-07-07 10:21 by 追忆似水流年, 151 阅读, 0 推荐, 收藏, 编辑
摘要:Update Existing Entity using DBContext in Disconnected Scenario: In this chapter, you will learn how to update a single entity in a disconnected scena 阅读全文
Entity Framework Tutorial Basics(23):Add Single Entity
2016-07-07 10:19 by 追忆似水流年, 135 阅读, 0 推荐, 收藏, 编辑
摘要:Add New Entity using DBContext in Disconnected Scenario: In this chapter you will learn how to add new entity in DbContext in the disconnected scenari 阅读全文
Entity Framework Tutorial Basics(22):Disconnected Entities
2016-07-07 10:16 by 追忆似水流年, 190 阅读, 0 推荐, 收藏, 编辑
摘要:Disconnected Entities: Before we see how to perform CRUD operation on disconnected entity graph, let's see how to associate disconnected entity graph 阅读全文
Entity Framework Tutorial Basics(21):CRUD Operation in Connected Scenario
2016-07-07 10:14 by 追忆似水流年, 179 阅读, 0 推荐, 收藏, 编辑
摘要:CRUD Operation in Connected Scenario: CRUD operation in connected scenario is a fairly easy task because the context automatically tracks the changes 阅读全文
Entity Framework Tutorial Basics(20):Persistence in Entity Framework
2016-07-07 10:12 by 追忆似水流年, 156 阅读, 0 推荐, 收藏, 编辑
摘要:Persistence in Entity Framework There are two scenarios when persisting an entity using EntityFramework, connected and disconnected scenarios. Connect 阅读全文
Entity Framework Tutorial Basics(19):Change Tracking
2016-07-07 10:11 by 追忆似水流年, 189 阅读, 0 推荐, 收藏, 编辑
摘要:Change Tracking in Entity Framework: Here, you will learn how entity framework tracks changes on entities during its life time. Entity framework suppo 阅读全文
Entity Framework Tutorial Basics(18):DBEntityEntry Class
2016-07-07 10:09 by 追忆似水流年, 186 阅读, 0 推荐, 收藏, 编辑
摘要:DBEntityEntry Class DBEntityEntry is an important class, which is useful in retrieving various information about an entity. You can get an instance of 阅读全文
Entity Framework Tutorial Basics(17):DBSet Class
2016-07-07 10:08 by 追忆似水流年, 181 阅读, 0 推荐, 收藏, 编辑
摘要:DBSet Class DBSet class represents an entity set that is used for create, read, update, and delete operations. A generic version of DBSet (DbSet<TEnti 阅读全文