Table of Contents

Class EntityKeyAttribute

Namespace
eQuantic.Core.Data.Modeling
Assembly
eQuantic.Core.Data.dll

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; }

Property Value

bool