Table of Contents

Class Entity<TKey>

Namespace
Savvyio.Domain
Assembly
Savvyio.Domain.dll

Provides a way to cover the pattern of an Entity as specified in Domain Driven Design. This is an abstract class.

public abstract class Entity<TKey> : IEntity<TKey>, IIdentity<TKey>

Type Parameters

TKey

The type of the identifier.

Inheritance
Object
Entity<TKey>
Implements
IEntity<TKey>
IIdentity<TKey>
Derived

Constructors

Entity()

Initializes a new instance of the Entity<TKey> class.

protected Entity()

Entity(TKey)

Initializes a new instance of the Entity<TKey> class.

protected Entity(TKey id)

Parameters

id TKey

The identifier of the entity.

Properties

Id

Gets or sets the value of the identifier.

public TKey Id { get; protected set; }

Property Value

TKey

The value of the identifier.

IsTransient

Gets a value indicating whether this instance is transient.

public virtual bool IsTransient { get; }

Property Value

Boolean

true if this instance is transient; otherwise, false.

See Also

IEntity<TKey>