Skip to content

Commit

Permalink
Fix the warnings SN-776
Browse files Browse the repository at this point in the history
  • Loading branch information
vasiliy-chefonov committed Feb 14, 2025
1 parent b190edc commit 15fdcb7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public static bool IsLazyLoadingProxy(this Type type)
return baseType != null && type.Namespace == CastleProxiesNamespace;
}


/// <summary>
/// Gets the POCO type of the entity.
/// </summary>
Expand All @@ -33,7 +32,7 @@ public static Type GetPocoType(this object entity)

if (!entityType.IsLazyLoadingProxy())
{
throw new InvalidOperationException("The provided entity is not a lazy loading proxy.");
throw new InvalidOperationException($"The provided entity of type {entityType.Name} is not a lazy loading proxy.");
}

return entityType.BaseType!;
Expand Down

0 comments on commit 15fdcb7

Please sign in to comment.