我试图映射一个N-N关系与dapper使用DB MySQL.这或多或少就是代码。query.Append("SELECT O.Id, O.Email, O.Status, P.Name FROM Owners AS O"); query.Append(" INNER JOIN Pets AS P ON P.Id = OP.PetId&qu
我正在尝试使用Dapper的多映射功能来返回ProductItems和相关客户的列表。Customer public decimal CustomerId { get; set; }}var sql = @"select * from Product p
inner join Customer c on p.CustomerId = c.CustomerIdp
我编写了SQL查询字符串,它运行良好,但是当我将查询放在dapper中时,ORM.VS告诉我我有一个内部异常。即使在使用splitOn param之后,我仍然会得到异常。使用多映射APIs的System.ArgumentException HResult=0x80070057 Message=When确保在有除Id以外的键时设置splitOn param。,eCat.DisplayColour
FROM dbo.Event e INNER J