// // Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License. // using Astral.Core.Attributes.EntityAnnotation; namespace Astral.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; } }