@@ -27,7 +27,7 @@ public static void ConfigureSmartEnum(this ModelConfigurationBuilder configurati
2727 var propertyTypes = modelBuilder . Model . GetEntityTypes ( )
2828 . SelectMany ( e => e . ClrType . GetProperties ( ) )
2929 . Where ( p => TypeUtil . IsDerived ( p . PropertyType , typeof ( SmartEnum < , > ) ) )
30- . Where ( p => p . GetCustomAttribute < NotMappedAttribute > ( ) == null )
30+ . Where ( p => p . GetCustomAttribute < NotMappedAttribute > ( ) is null )
3131 . Select ( p => p . PropertyType )
3232 . Distinct ( ) ;
3333
@@ -58,7 +58,7 @@ public static void ConfigureSmartEnum(this ModelBuilder modelBuilder)
5858 {
5959 var properties = entityType . ClrType . GetProperties ( )
6060 . Where ( p => TypeUtil . IsDerived ( p . PropertyType , typeof ( SmartEnum < , > ) ) )
61- . Where ( p => p . GetCustomAttribute < NotMappedAttribute > ( ) == null ) ;
61+ . Where ( p => p . GetCustomAttribute < NotMappedAttribute > ( ) is null ) ;
6262
6363 foreach ( var property in properties )
6464 {
@@ -74,7 +74,7 @@ public static void ConfigureSmartEnum(this ModelBuilder modelBuilder)
7474 var converter = ( ValueConverter ) Activator . CreateInstance ( converterType ) ;
7575
7676 var propertyBuilder = GetPropertyBuilder ( modelBuilder , entityType , property . Name ) ;
77- if ( propertyBuilder == null )
77+ if ( propertyBuilder is null )
7878 {
7979 continue ;
8080 }
@@ -111,7 +111,7 @@ private static PropertyBuilder GetPropertyBuilder(
111111 }
112112
113113 var ownedNavigationBuilder = GetOwnedNavigationBuilder ( entityTypeBuilder , ownershipPath ) ;
114- if ( ownedNavigationBuilder == null )
114+ if ( ownedNavigationBuilder is null )
115115 {
116116 return null ;
117117 }
@@ -129,12 +129,12 @@ private static OwnedNavigationBuilder GetOwnedNavigationBuilder(
129129 var ownership = ownershipPath [ i ] ;
130130
131131 var navigation = ownership . GetNavigation ( pointsToPrincipal : false ) ;
132- if ( navigation == null )
132+ if ( navigation is null )
133133 {
134134 return null ;
135135 }
136136
137- if ( ownedNavigationBuilder == null )
137+ if ( ownedNavigationBuilder is null )
138138 {
139139 if ( ownership . IsUnique )
140140 {
0 commit comments