如何将数据插入用户表。 (在dapper orm中插入查询) 如何在Dapper ORM中进行一对多映射
public class Users
{
public int Id { get; set; }
public string Username { get; set; }
public string Email { get; set; }
public ContactDetails ContactDetails { get; set; } //child table
}
public class ContactDetails
{
public int Id { get; set; }
public int Mobile { get; set; }
public string Address { get; set; }
public int UserId { get; set; }
}