Skip to content

Commit

Permalink
Fix comparer validation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriySvyryd committed Sep 13, 2022
1 parent 017e22e commit 0a66acb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EFCore/Infrastructure/ModelValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,7 @@ protected virtual void ValidateTypeMappings(
var type = converter.ModelClrType;
if (type != typeof(string)
&& !(type == typeof(byte[]) && property.IsKey()) // Already special-cased elsewhere
&& !property.IsForeignKey()
&& type.TryGetSequenceType() != null)
{
logger.CollectionWithoutComparer(property);
Expand Down

0 comments on commit 0a66acb

Please sign in to comment.