| 1234567891011121314151617181920 |
- namespace Abp.Domain.Entities
- {
- /// <summary>
- /// Defines interface for base entity type. All entities in the system must implement this interface.
- /// </summary>
- /// <typeparam name="TPrimaryKey">Type of the primary key of the entity</typeparam>
- public interface IEntity<TPrimaryKey>
- {
- /// <summary>
- /// Unique identifier for this entity.
- /// </summary>
- TPrimaryKey Id { get; set; }
- /// <summary>
- /// Checks if this entity is transient (not persisted to database and it has not an <see cref="Id"/>).
- /// </summary>
- /// <returns>True, if this entity is transient</returns>
- bool IsTransient();
- }
- }
|