NHibernate: Error dehydrating property - What the heck is this?

前端 未结 6 2143
谎友^
谎友^ 2021-01-17 10:21

I\'m doing a fairly complex NHibernate transaction in a financial system, creating a payment, recording the ledger entries, checking to see if the payment is the total amoun

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-17 10:27

    You should check CFAPTransaction mapping, It looks like you wanted to specify one Vendor for each transaction. In this case your mapping has to be like below code.

    public CFAPTransactionMap()
    {
      HasOne(x => x.Vendor).ForeignKey("VendorId").Cascade.All();
      ...
    }
    

提交回复
热议问题