Table of Contents

Class EntityAttribute

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

The store-neutral modeling vocabulary: one set of eQuantic-owned annotations that every provider interprets — no driver attributes on entities ([BsonElement], EF's [Column]…), no rewrite when an entity moves between stores. The names are deliberately distinct from System.ComponentModel.DataAnnotations so both can coexist without ambiguity.

Precedence is explicit and deterministic: conventions < annotations < fluent — the annotations seed each provider's model builder, and fluent configuration overrides them. Each provider honours the subset that maps to its store (the model's Explain() shows the outcome); annotations outside a store's vocabulary are ignored, never errors.

[AttributeUsage(AttributeTargets.Class)]
public sealed class EntityAttribute : Attribute
Inheritance
EntityAttribute
Inherited Members

Remarks

Applies to the class: the storage name — table, collection or container.

Constructors

EntityAttribute(string)

The store-neutral modeling vocabulary: one set of eQuantic-owned annotations that every provider interprets — no driver attributes on entities ([BsonElement], EF's [Column]…), no rewrite when an entity moves between stores. The names are deliberately distinct from System.ComponentModel.DataAnnotations so both can coexist without ambiguity.

Precedence is explicit and deterministic: conventions < annotations < fluent — the annotations seed each provider's model builder, and fluent configuration overrides them. Each provider honours the subset that maps to its store (the model's Explain() shows the outcome); annotations outside a store's vocabulary are ignored, never errors.

public EntityAttribute(string name)

Parameters

name string

Remarks

Applies to the class: the storage name — table, collection or container.

Properties

Name

The storage name.

public string Name { get; }

Property Value

string

Methods

NameFor(Type)

The storage name declared for entityType, or null.

public static string? NameFor(Type entityType)

Parameters

entityType Type

Returns

string