Skip to main content

Interface IPrimaryKey<T>

Defines a contract for entities that have a primary key of a specific type.

public interface IPrimaryKey<T> where T : IEquatable<T>

Type Parameters​

NameTypeDescription
TThe type of the primary key. Must implement IEquatable.

Properties​

Id​

Gets or sets the unique identifier for the entity.

T Id { get; set; }

Property Value​

T