Class EntityKeyAttribute
Declares the entity's key member (a member named Id is the convention otherwise).
[AttributeUsage(AttributeTargets.Property)]
public sealed class EntityKeyAttribute : Attribute
- Inheritance
-
EntityKeyAttribute
- Inherited Members
Properties
Generated
Whether the store generates the key (identity): inserts omit it and read it back where supported.
public bool Generated { get; set; }