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 1
1
<Project >
2
2
3
3
<PropertyGroup >
4
- <VersionPrefix >1.36.0 </VersionPrefix >
4
+ <VersionPrefix >1.36.1 </VersionPrefix >
5
5
</PropertyGroup >
6
6
7
7
<PropertyGroup >
Original file line number Diff line number Diff line change @@ -14,27 +14,27 @@ public override void Finalize(ModelBuilder modelBuilder)
14
14
{
15
15
if ( entity . BaseType == null )
16
16
{
17
- entity . SetTableName ( entity . GetTableName ( ) . ToLowerInvariant ( ) ) ;
17
+ entity . SetTableName ( entity . GetTableName ( ) ? . ToLowerInvariant ( ) ) ;
18
18
}
19
19
20
20
foreach ( var property in entity . GetProperties ( ) )
21
21
{
22
- property . SetColumnName ( property . GetColumnBaseName ( ) . ToLowerInvariant ( ) ) ;
22
+ property . SetColumnName ( property . GetColumnBaseName ( ) ? . ToLowerInvariant ( ) ) ;
23
23
}
24
24
25
25
foreach ( var key in entity . GetKeys ( ) )
26
26
{
27
- key . SetName ( key . GetName ( ) . ToLowerInvariant ( ) ) ;
27
+ key . SetName ( key . GetName ( ) ? . ToLowerInvariant ( ) ) ;
28
28
}
29
29
30
30
foreach ( var key in entity . GetForeignKeys ( ) )
31
31
{
32
- key . SetConstraintName ( key . GetConstraintName ( ) . ToLowerInvariant ( ) ) ;
32
+ key . SetConstraintName ( key . GetConstraintName ( ) ? . ToLowerInvariant ( ) ) ;
33
33
}
34
34
35
35
foreach ( var index in entity . GetIndexes ( ) )
36
36
{
37
- index . SetDatabaseName ( index . GetDatabaseName ( ) . ToLowerInvariant ( ) ) ;
37
+ index . SetDatabaseName ( index . GetDatabaseName ( ) ? . ToLowerInvariant ( ) ) ;
38
38
}
39
39
}
40
40
}
Original file line number Diff line number Diff line change 1
1
# RELEASE NOTES
2
2
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
+
3
8
## [ 1.36.0] - 2024-06-24
4
9
5
10
### Fixed
You can’t perform that action at this time.
0 commit comments