做个记录:
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 参数
时间: 2024-09-29 03:19:32