阅读背景:

Dapper 一对多查询 one to many

来源:互联网 

参考文档:Dapper one to many

Table

public class Person
{
    public int Id { get; set; }
    public string Name { get; set; }
    public int Born { get; set; }
    public Country Residience { get; set; }
    public ICollection<Book> Books { get; set; }
}

public class Country
{
    public int CountryId { get; set; }
    public string CountryName { get; set; }
}

public class Book
{
    public int BookId { get; set; }
    public string BookName { get; set; }
}public class Person



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: