namespace Galaeth.Core.Exceptions;
///
/// Thrown if an entity has multiple primary keys defined.
///
public class MultiplePrimaryKeysException : Exception
{
///
/// Initializes a new instance of the class.
///
/// The entity causing the exception.
public MultiplePrimaryKeysException(Type entityType)
: base($"Entity '{entityType}' contains multiple primary keys")
{
EntityType = entityType;
}
///
/// The entity type.
///
public Type EntityType { get; set; }
}