Skip to content

Commit

Permalink
Fix issue with skip generic naming when using description
Browse files Browse the repository at this point in the history
  • Loading branch information
pergerch committed Nov 6, 2020
1 parent 0c63aee commit 893e7ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ public NamingOptions SkipTableNamingForEntities(Func<IMutableEntityType, bool> s

public NamingOptions SkipTableNamingForGenericEntityTypes()
{
return SkipTableNamingForEntities(entity =>
entity.ClrType.IsGenericType && (entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithNumberLookup<>) ||
entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithStringLookup<>)));
return SkipTableNamingForEntities(entity => entity.ClrType.IsGenericType &&
(entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithNumberLookup<>) ||
entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithNumberLookupAndDescription<>) ||
entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithStringLookup<>) ||
entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithNumberLookupAndDescription<>)));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>2.1.0</Version>
<Version>2.1.1</Version>
<PackageId>SpatialFocus.EntityFrameworkCore.Extensions</PackageId>
<Title>Spatial Focus EntityFrameworkCore Extensions</Title>
<Description>A set of useful extensions for EntityFrameworkCore (Enum Lookup Tables, Naming of tables / properties / keys, Pluralize).</Description>
Expand Down

0 comments on commit 893e7ed

Please sign in to comment.