【发布时间】:2023-03-09 06:22:01
【问题描述】:
我有两个列表的学生对象。我想从存储过程中检索学生列表。我如何使用 dapper 获取带有提到的两个列表的学生对象列表。
公开课学生 { 公共 int StudentId { 获取;放; }
public string RefNo { get; set; }
public int StudentModeId { get; set; }
public string FullName { get; set; }
public string KnownName { get; set; }
public List<StudentAttachment> StudentAttachments { get; set; }
public List<StudentExpenses> StudentExpenceses { get; set; }
}
【问题讨论】: