@@ -277,6 +277,15 @@ public void Extends(Type type)
277
277
{
278
278
attributes . Set ( "Extends" , Layer . UserSupplied , type ) ;
279
279
}
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 ) ;
280
289
281
290
SubclassMapping IIndeterminateSubclassMappingProvider . GetSubclassMapping ( SubclassType type )
282
291
{
@@ -330,6 +339,9 @@ SubclassMapping IIndeterminateSubclassMappingProvider.GetSubclassMapping(Subclas
330
339
case MappingProviderStore . ProviderType . StoredProcedure :
331
340
mapping . AddStoredProcedure ( ( ( IStoredProcedureMappingProvider ) mappingProviderObj ) . GetStoredProcedureMapping ( ) ) ;
332
341
break ;
342
+ case MappingProviderStore . ProviderType . Tupilizer :
343
+ mapping . Set ( y => y . Tuplizer , Layer . Defaults , ( TuplizerMapping ) mappingProviderObj ) ;
344
+ break ;
333
345
case MappingProviderStore . ProviderType . Subclass :
334
346
case MappingProviderStore . ProviderType . Filter :
335
347
case MappingProviderStore . ProviderType . Join :
@@ -338,7 +350,6 @@ SubclassMapping IIndeterminateSubclassMappingProvider.GetSubclassMapping(Subclas
338
350
case MappingProviderStore . ProviderType . NaturalId :
339
351
case MappingProviderStore . ProviderType . Version :
340
352
case MappingProviderStore . ProviderType . Discriminator :
341
- case MappingProviderStore . ProviderType . Tupilizer :
342
353
default :
343
354
throw new Exception ( "Internal Error" ) ;
344
355
}
0 commit comments