Skip to content

Commit 1ad473c

Browse files
committed
Method naming improvement (HasEnumLookupAttribute)
1 parent d68ef5e commit 1ad473c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SpatialFocus.EntityFrameworkCore.Extensions/EnumLookupExtension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static void ConfigureEnumLookup(this ModelBuilder modelBuilder, EnumLooku
2929
continue;
3030
}
3131

32-
if (enumOptions.UseEnumsWithAttributesOnly && !propertyType.HasEnumWithAttribute())
32+
if (enumOptions.UseEnumsWithAttributesOnly && !propertyType.HasEnumLookupAttribute())
3333
{
3434
continue;
3535
}
@@ -106,7 +106,7 @@ private static Type GetEnumOrNullableEnumType(this Type propertyType)
106106
return propertyType.IsEnum ? propertyType : propertyType.GetGenericArguments()[0];
107107
}
108108

109-
private static bool HasEnumWithAttribute(this Type propertyType)
109+
private static bool HasEnumLookupAttribute(this Type propertyType)
110110
{
111111
if (propertyType.GetCustomAttributes(typeof(EnumLookupAttribute), true).Any())
112112
{

0 commit comments

Comments
 (0)