我使用 DapperExtensions 库进行简单的 CRUD 操作。当我向模型添加导航属性时,我收到一条错误消息,指出该列不在数据库中。你能以任何方式改变它,让 Dapper Extensions 忽略这个属性吗?
我的模型示例
public class Order : EntityBase
{
public int OrderId { get; set; }
public int MarketId { get; set; }
public int ModelId { get; set; }
public int ContactId { get; set; }
public string Project { get; set; }
public decimal Undertaking { get; set; }
public virtual Model Model { get; set; }
public virtual Contact Contact { get; set; }
}