Table of Contents

Interface IEntity<TKey>

Namespace
Excalibur.Domain.Model
Assembly
Excalibur.Domain.dll

Represents a typed entity in the domain-driven design (DDD) pattern.

public interface IEntity<out TKey> : IEntity

Type Parameters

TKey

The type of the key used to uniquely identify the entity.

Remarks

Extends the base IEntity interface by adding a strongly-typed identifier. Entities are uniquely identified by their key within the domain.

Properties

Key

Gets the unique identifier for the entity.

TKey Key { get; }

Property Value

TKey

The unique identifier for the entity.

Remarks

The Key property defines the identity of the entity. Two entities are considered equal if they are of the same type and have the same key.