我刚刚使用了一个DLL库,它记录了以下类:
类别定义:
[SerializableAttribute]
[EdmEntityTypeAttribute(NamespaceName = "CustomerData", Name = "Customer")]
[DataContractAttribute(IsReference = true)]
public class Customer : EntityObject类属性文档:
Name: public string Name { get; set; }
Description: public string Description { get; set; }
EntityKey: Inherited from EntityObject
EntityState: Inherited from EntityObject
etc... (common properties)尽管我可以声明和使用它,但我猜想这个类是如何构建的(EntityFramework?)以及如何使用EntityKey和EntityState属性。为什么它是从EntityObject继承的?
我只有DLL和很少的参考资料。
发布于 2014-02-13 19:39:59
是的,这个类来自于实体框架的某些版本。
我强烈建议您忽略基类中的这些属性。它们是特定于类的实现的,几乎肯定不应该使用。
https://stackoverflow.com/questions/21763882
复制相似问题