Entity<TKey> Class
Definition
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
TKeyThe type of the identifier.
- Inheritance
-
Entity<TKey>
- Derived
Constructors
| Name | Description |
|---|---|
| Entity() | Initializes a new instance of the Entity<TKey> class. |
| Entity(TKey) | Initializes a new instance of the Entity<TKey> class. |
Properties
| Name | Description |
|---|---|
| Id | Gets or sets the value of the identifier. |
| IsTransient | Gets a value indicating whether this instance is transient. |
See Also
IEntity<TKey>