Cart
{
CompositeId().KeyProperty(x => x.CART_ID, "CART_ID").KeyProperty(x => x.COMM_CD, "COMM_CD");
References(x => x.Product, "COMM_CD");
}
当我尝试将购物车对象保存到数据库中时,我收到了超出范围的异常。我认为这是因为我有两个 COMM_CD 属性。有没有办法解决这个问题?
谢谢
Cart
{
CompositeId().KeyProperty(x => x.CART_ID, "CART_ID").KeyProperty(x => x.COMM_CD, "COMM_CD");
References(x => x.Product, "COMM_CD");
}
当我尝试将购物车对象保存到数据库中时,我收到了超出范围的异常。我认为这是因为我有两个 COMM_CD 属性。有没有办法解决这个问题?
谢谢