我正在使用STE,并且希望为对象及其子项启用更改跟踪。我现在需要做的就是这样的事情。 int id = 1;
using(CustomerEntities context = new CustomerEntities())
{
CustomerSection custSection = context.CustomerSections.Include("CustomerSectio
我有一个基类,我从继承有两个零到与其他实体一对多的关系: public abstract class WebObject
{
public WebObject()
{
RelatedTags = new List<Tag>();
RelatedWebObjects = new List<WebObject>();
}
[Key,