Exemplo n.º 1
0
 //-----------------------------------------------------------------------------------------------------------------------------------------------------
 public TypeMetadataCache(
     DataObjectConventions dataObjectConventions,
     IRelationalMappingConvention relationalMappingConvention,
     IEnumerable<MixinRegistration> mixinRegistrations)
 {
     _dataObjectConventions = dataObjectConventions;
     _relationalMappingConvention = relationalMappingConvention;
     _mixinsByPrimaryContract = mixinRegistrations.GroupBy(r => r.TargetContract).ToDictionary(g => g.Key, g => g.ToArray());
 }
Exemplo n.º 2
0
 //-----------------------------------------------------------------------------------------------------------------------------------------------------
 public TypeMetadataCache(
     DataObjectConventions dataObjectConventions, 
     IRelationalMappingConvention relationalMappingConvention)
     : this(dataObjectConventions, relationalMappingConvention, mixinRegistrations: new MixinRegistration[0])
 {
 }