Skip to content

Commit 893e7ed

Browse files
committed
Fix issue with skip generic naming when using description
1 parent 0c63aee commit 893e7ed

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/SpatialFocus.EntityFrameworkCore.Extensions/NamingOptions.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,11 @@ public NamingOptions SkipTableNamingForEntities(Func<IMutableEntityType, bool> s
119119

120120
public NamingOptions SkipTableNamingForGenericEntityTypes()
121121
{
122-
return SkipTableNamingForEntities(entity =>
123-
entity.ClrType.IsGenericType && (entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithNumberLookup<>) ||
124-
entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithStringLookup<>)));
122+
return SkipTableNamingForEntities(entity => entity.ClrType.IsGenericType &&
123+
(entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithNumberLookup<>) ||
124+
entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithNumberLookupAndDescription<>) ||
125+
entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithStringLookup<>) ||
126+
entity.ClrType.GetGenericTypeDefinition() == typeof(EnumWithNumberLookupAndDescription<>)));
125127
}
126128
}
127129
}

src/SpatialFocus.EntityFrameworkCore.Extensions/SpatialFocus.EntityFrameworkCore.Extensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<PropertyGroup>
8-
<Version>2.1.0</Version>
8+
<Version>2.1.1</Version>
99
<PackageId>SpatialFocus.EntityFrameworkCore.Extensions</PackageId>
1010
<Title>Spatial Focus EntityFrameworkCore Extensions</Title>
1111
<Description>A set of useful extensions for EntityFrameworkCore (Enum Lookup Tables, Naming of tables / properties / keys, Pluralize).</Description>

0 commit comments

Comments
 (0)