我有一个称为“装置”的模范类,即:
public class DeviceType
{
int ID { get; set; }
String Type { get; set; }
String Description { get; set; }
EntityCollection<AttributeDefinition> AttributeDefinitions { get; set; }
}
定义如下:
public class AttributeDefinition
{
int ID { get; set; }
String Name { get; set; }
bool IsPrivate { get; set; }
bool IsInherited { get; set; }
}
我试图为一种装置铺设细节。 在这种观点中,我要向每个阿特曼底省提交一份表格,作为一条可调用的行文,以便你能够在同一页上更新每个阿特曼底。
我试图遵循,但这一员额。 我发现这一错误:
The EntityCollection has already been initialized. The InitializeRelatedCollection method should only be called to initialize a new EntityCollection during deserialization of an object graph.
如果没有像自治政府这样的东西,是否有办法这样做? 或许要使用表格,或者使用一种观点吗?