ObjectContext.CreateQuery<T> 返回匿名类型
没有什么太好的方法,只能使用DbDataRecord或dynamic作为类型指定,返回类型操作不直观,但能用。
ObjectContext.CreateQuery<dynamic>(sql); // or ObjectContext.CreateQuery<DbDataRecord>(sql);
没有什么太好的方法,只能使用DbDataRecord或dynamic作为类型指定,返回类型操作不直观,但能用。
ObjectContext.CreateQuery<dynamic>(sql); // or ObjectContext.CreateQuery<DbDataRecord>(sql);