标签:style blog color io ar div cti sp log
做个记录:
var pCount = this._dataProvider.GetParameter(); pCount.ParameterName = "totalCount"; pCount.Direction = ParameterDirection.Output; pCount.DbType = DbType.Int32; var list = this._dbContext.SqlQuery<User>("exec P_GetList @totalCount out", pCount).ToList();
必须要加 .ToList(),否则获取不到 存储过程 的 Output 参数
Entity Framework 利用 Database.SqlQuery<T> 执行存储过程,并返回Output参数值
标签:style blog color io ar div cti sp log
原文地址:http://www.cnblogs.com/gsbhz/p/3952937.html