Пример #1
0
 /// <inheritdoc />
 public override string ToString()
 {
     return(!this
         ? "(Empty)"
         : $"(Type = {EntityTypeNames.GetTypeName(Type)}, Handle = {Handle})");
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InvalidEntityArgumentException" /> class.
 /// </summary>
 /// <param name="paramName">Name of the parameter.</param>
 /// <param name="expectedType">The expected entity identifier type.</param>
 public InvalidEntityArgumentException(string paramName, Guid expectedType) : base(
         $"Invalid entity identifier type, expected type to be {EntityTypeNames.GetTypeName(expectedType)}.",
         paramName)
 {
 }