using System.ComponentModel.DataAnnotations; namespace AyCode.Interfaces.Entities { public interface IEntity { } public interface IEntity : IEntity { [Key] TPKey Id { get; set; } //T SetId(T id); } }