@@ -42,24 +42,24 @@ void IAutoClasslike.AlterModel(ClassMappingBase mapping)
4242 if ( mapping is ClassMapping classMapping )
4343 {
4444 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 ( ) ) ;
4646
4747 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 ( ) ) ;
4949
5050 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 ( ) ) ;
5252
5353 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 ( ) ) ;
5555
5656 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 ( ) ) ;
5858
5959 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 ( ) ) ;
6161
62- classMapping . Set ( x => x . Tuplizer , Layer . Defaults , providers . TuplizerMapping ) ;
62+ classMapping . Set ( x => x . Tuplizer , Layer . UserSupplied , providers . TuplizerMapping ) ;
6363 }
6464
6565 foreach ( var join in providers . Joins )
0 commit comments