using Galaeth.Core.Attributes.EntityAnnotation; namespace Galaeth.Core.Exceptions; /// /// Thrown if an entity is missing a property with . /// public class PrimaryKeyMissingException : Exception { /// /// Initializes a new instance of the class. /// /// The entity causing the exception. public PrimaryKeyMissingException(Type entityType) : base($"Entity '{entityType}' is missing a property with a PrimaryKey.") { EntityType = entityType; } /// /// The entity type. /// public Type EntityType { get; set; } }