using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Yi.Framework.Model.Base { /// /// Defines an entity. It's primary key may not be "Id" or it may have a composite primary key. /// Use where possible for better integration to repositories and other structures in the framework. /// public interface IEntity { /// /// Returns an array of ordered keys for this entity. /// /// //object[] GetKeys(); } /// /// Defines an entity with a single primary key with "Id" property. /// /// Type of the primary key of the entity public interface IEntity : IEntity { /// /// Unique identifier for this entity. /// TKey Id { get; } } }