DbContext API 的一些关键点
摘要:*DbContextAPI的一些关键点**db.Categories.Find()-通过传递主键值作为参数查找实体,复合主键就传多个参数*db.Categories.Add()-把一个新增的实体添加到上下文*db.Categories.Attach()-把一个已存在的实体添加到上下文*db.Ent...
阅读全文
posted @ 2014-07-23 10:52
posted @ 2014-07-23 10:52
posted @ 2014-04-26 17:04
posted @ 2014-04-22 10:49