且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

自引用实体

更新时间: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.


相关阅读

技术问答最新文章