File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
Providers/EFCore/Revo.EFCore/DataAccess/Conventions Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 11<Project >
22
33 <PropertyGroup >
4- <VersionPrefix >1.36.0 </VersionPrefix >
4+ <VersionPrefix >1.36.1 </VersionPrefix >
55 </PropertyGroup >
66
77 <PropertyGroup >
Original file line number Diff line number Diff line change @@ -14,27 +14,27 @@ public override void Finalize(ModelBuilder modelBuilder)
1414 {
1515 if ( entity . BaseType == null )
1616 {
17- entity . SetTableName ( entity . GetTableName ( ) . ToLowerInvariant ( ) ) ;
17+ entity . SetTableName ( entity . GetTableName ( ) ? . ToLowerInvariant ( ) ) ;
1818 }
1919
2020 foreach ( var property in entity . GetProperties ( ) )
2121 {
22- property . SetColumnName ( property . GetColumnBaseName ( ) . ToLowerInvariant ( ) ) ;
22+ property . SetColumnName ( property . GetColumnBaseName ( ) ? . ToLowerInvariant ( ) ) ;
2323 }
2424
2525 foreach ( var key in entity . GetKeys ( ) )
2626 {
27- key . SetName ( key . GetName ( ) . ToLowerInvariant ( ) ) ;
27+ key . SetName ( key . GetName ( ) ? . ToLowerInvariant ( ) ) ;
2828 }
2929
3030 foreach ( var key in entity . GetForeignKeys ( ) )
3131 {
32- key . SetConstraintName ( key . GetConstraintName ( ) . ToLowerInvariant ( ) ) ;
32+ key . SetConstraintName ( key . GetConstraintName ( ) ? . ToLowerInvariant ( ) ) ;
3333 }
3434
3535 foreach ( var index in entity . GetIndexes ( ) )
3636 {
37- index . SetDatabaseName ( index . GetDatabaseName ( ) . ToLowerInvariant ( ) ) ;
37+ index . SetDatabaseName ( index . GetDatabaseName ( ) ? . ToLowerInvariant ( ) ) ;
3838 }
3939 }
4040 }
Original file line number Diff line number Diff line change 11# RELEASE NOTES
22
3+ ## [ 1.36.1] - 2024-11-07
4+
5+ ### Fixed
6+ - fixed LowerCaseConvention null reference exceptions when key names were null (e.g. with owned types)
7+
38## [ 1.36.0] - 2024-06-24
49
510### Fixed
You can’t perform that action at this time.
0 commit comments