首页 > 代码库 > Entity Framework Linq 简单笔记

Entity Framework Linq 简单笔记

 

 

类型查询

public class bbb:xxx

{}

var items = from c in context.Dbset<xxx>    where c is bbb   select c;
var items = from c in context.Dbset<xxx> .OfType<bbb>()  select c;

Entity Framework Linq 简单笔记