我有两个班级'产品'和'卖家'.
public class Product
{
public int Id { get; set; }
public string Name { get; set; }
public decimal Price { get; set; }
public Seller Seller { get; set; }
public int? SellerId { get; set; }
}
public class Seller
{
public int Id { get; set; }
public string Name { get; set; }
public List<Product> Products { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
我想使用dapper提取所有产品的卖家列表.
目前我这样做:
Dictionary<int, Seller> dic = new Dictionary<int, Seller>();
Conn.Query<Seller, Product, int>
(@"select …Run Code Online (Sandbox Code Playgroud) 我试图弄清楚如何使用 TVJS 从 TVML 中的 textField 获取值,但我还没有找到任何关于它的文档,我不想等待文档更新。实际上没有任何绑定到输入的模式,因为我确定这是除了登录服务之外很少使用的用例。我想我可以解析 Xml 但这似乎超级hacky。