📜  实体框架返回记录数 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:25.243000             🧑  作者: Mango

代码示例1
var count = (from o in context.MyContainer
             where o.ID == '1'
             from t in o.MyTable
             select t).Count();