@@ -42,24 +42,24 @@ void IAutoClasslike.AlterModel(ClassMappingBase mapping)
42
42
if ( mapping is ClassMapping classMapping )
43
43
{
44
44
if ( providers . Id is not null )
45
- classMapping . Set ( x => x . Id , Layer . Defaults , providers . Id . GetIdentityMapping ( ) ) ;
45
+ classMapping . Set ( x => x . Id , Layer . UserSupplied , providers . Id . GetIdentityMapping ( ) ) ;
46
46
47
47
if ( providers . NaturalId is not null )
48
- classMapping . Set ( x => x . NaturalId , Layer . Defaults , providers . NaturalId . GetNaturalIdMapping ( ) ) ;
48
+ classMapping . Set ( x => x . NaturalId , Layer . UserSupplied , providers . NaturalId . GetNaturalIdMapping ( ) ) ;
49
49
50
50
if ( providers . CompositeId is not null )
51
- classMapping . Set ( x => x . Id , Layer . Defaults , providers . CompositeId . GetCompositeIdMapping ( ) ) ;
51
+ classMapping . Set ( x => x . Id , Layer . UserSupplied , providers . CompositeId . GetCompositeIdMapping ( ) ) ;
52
52
53
53
if ( providers . Version is not null )
54
- classMapping . Set ( x => x . Version , Layer . Defaults , providers . Version . GetVersionMapping ( ) ) ;
54
+ classMapping . Set ( x => x . Version , Layer . UserSupplied , providers . Version . GetVersionMapping ( ) ) ;
55
55
56
56
if ( providers . Discriminator is not null )
57
- classMapping . Set ( x => x . Discriminator , Layer . Defaults , providers . Discriminator . GetDiscriminatorMapping ( ) ) ;
57
+ classMapping . Set ( x => x . Discriminator , Layer . UserSupplied , providers . Discriminator . GetDiscriminatorMapping ( ) ) ;
58
58
59
59
if ( Cache . IsDirty )
60
- classMapping . Set ( x => x . Cache , Layer . Defaults , ( ( ICacheMappingProvider ) Cache ) . GetCacheMapping ( ) ) ;
60
+ classMapping . Set ( x => x . Cache , Layer . UserSupplied , ( ( ICacheMappingProvider ) Cache ) . GetCacheMapping ( ) ) ;
61
61
62
- classMapping . Set ( x => x . Tuplizer , Layer . Defaults , providers . TuplizerMapping ) ;
62
+ classMapping . Set ( x => x . Tuplizer , Layer . UserSupplied , providers . TuplizerMapping ) ;
63
63
}
64
64
65
65
foreach ( var join in providers . Joins )
0 commit comments