using System.ComponentModel.DataAnnotations; namespace StarterKit.Entities { /// /// These are the base classes for all entities /// The repositories have this class as constraint for entities that are persisted in the database. /// The default will have an integer type key but if desired you can specify a different type id. /// /// public class EntityBase : IEntityBase { [Key] public T Id { get; set; } } public class EntityBase : IEntityBase { [Key] public int Id { get; set; } } }