@@ -277,6 +277,15 @@ public void Extends(Type type)
277277 {
278278 attributes . Set ( "Extends" , Layer . UserSupplied , type ) ;
279279 }
280+
281+ /// <summary>
282+ /// Configures the tuplizer for this entity. The tuplizer defines how to transform
283+ /// a Property-Value to its persistent representation, and viceversa a Column-Value
284+ /// to its in-memory representation, and the EntityMode defines which tuplizer is in use.
285+ /// </summary>
286+ /// <param name="mode">Tuplizer entity-mode</param>
287+ /// <param name="tuplizerType">Tuplizer type</param>
288+ public TuplizerPart Tuplizer ( TuplizerMode mode , Type tuplizerType ) => CreateTuplizerPart ( mode , tuplizerType ) ;
280289
281290 SubclassMapping IIndeterminateSubclassMappingProvider . GetSubclassMapping ( SubclassType type )
282291 {
@@ -330,6 +339,9 @@ SubclassMapping IIndeterminateSubclassMappingProvider.GetSubclassMapping(Subclas
330339 case MappingProviderStore . ProviderType . StoredProcedure :
331340 mapping . AddStoredProcedure ( ( ( IStoredProcedureMappingProvider ) mappingProviderObj ) . GetStoredProcedureMapping ( ) ) ;
332341 break ;
342+ case MappingProviderStore . ProviderType . Tupilizer :
343+ mapping . Set ( y => y . Tuplizer , Layer . Defaults , ( TuplizerMapping ) mappingProviderObj ) ;
344+ break ;
333345 case MappingProviderStore . ProviderType . Subclass :
334346 case MappingProviderStore . ProviderType . Filter :
335347 case MappingProviderStore . ProviderType . Join :
@@ -338,7 +350,6 @@ SubclassMapping IIndeterminateSubclassMappingProvider.GetSubclassMapping(Subclas
338350 case MappingProviderStore . ProviderType . NaturalId :
339351 case MappingProviderStore . ProviderType . Version :
340352 case MappingProviderStore . ProviderType . Discriminator :
341- case MappingProviderStore . ProviderType . Tupilizer :
342353 default :
343354 throw new Exception ( "Internal Error" ) ;
344355 }
0 commit comments