我正在尝试执行存储过程以填充我的实例。
{
SqlParameter[] sqParams = new SqlParameter[]
{
new SqlParameter{ParameterName = "@rn", Value = firm.Rn, Direction = System.Data.ParameterDirection.Input},
new SqlParameter{ParameterName = "@startDate", Value = startDate, Direction = System.Data.ParameterDirection.Input},
new SqlParameter{ParameterName = "@endDate", Value = endDate, Direction = System.Data.ParameterDirection.Input},
new SqlParameter{ParameterName = "@spmo", Value = firm.Bkm == 3 ? 0 : 1, Direction = System.Data.ParameterDirection.Input},
new SqlParameter{ParameterName = "@pmo", Value = 0, Direction = System.Data.ParameterDirection.Input}
};
return _context.Database.SqlQuery<SupportTypeBased>("s_FirmSupportAnalysis @rn, @startDate, @endDate, @spmo, @pmo", sqParams).ToList();
}
还有我的返回实体。
public class SupportTypeBased : IDTOEntity
{
public string RECTYPE { get; set; }
public int MCOUNT { get; set; }
public int DCOUNT { get; set; }
}
如您所见,问题是数据库为我的类中的“