更新时间:2023-02-03 08:51:38
请尝试创建另一个订单并将RootOrder分配给新创建的订单。
Hello,
I use POCO objects to map my tabeles from database and I have problem with self referencing properties. My Order entity looks like this:
public class Order { public int OrderID {...} public Order RootOrder {...} public int Value {...} public Customer Customer {...} public OrderType OrderType {...} }
Please try to create another Order and assign the RootOrder to the new created order.