做个记录:

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 参数

相关文章:

  • 2021-10-31
  • 2021-10-16
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-21
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案