namespace Galaeth.Core.Exceptions; /// /// Thrown if an entity has a property that has a primary key attribute, but no column attribute. /// public class MissingColumnAttributeException : Exception { /// /// Initializes a new instance of the class. /// /// The entity causing the exception. public MissingColumnAttributeException(Type entityType) : base($"Entity '{entityType}' primary key requires a ColumnMapping attribute") { EntityType = entityType; } /// /// The entity type. /// public Type EntityType { get; set; } }