Entity Framework 常用类

(1)DbContext   (Entity FrameWork 5.0)

 

(数据库的CRUD操作)

 

(2)DbSet

   Represents a typed entity set that is used to perform create, read, update, and delete operations. DbSet is not publicly constructible and can only be created from a DbContext instance.  (表的CRUD操作)

 

 

 

posted on 2012-07-06 14:26  imihiro  阅读(321)  评论(0编辑  收藏  举报