ADO.NET Entity Framework(5)esql (二)
摘要:esql函数 统计类 Avg 平均值myContext context = new myContext();string esql = "SELECT value AVG(it.ItemValue) FROM myContext.DBItemList as it";ObjectQuery<int> query = context.CreateQuery<int>(esql)...
阅读全文
posted @ 2010-04-26 10:50