@@ -37,13 +37,13 @@ public sealed class CollectionMetadataGenerator
37
37
/// </summary>
38
38
private readonly string _referencedEntityName ;
39
39
40
- private static readonly MethodInfo sortedSetDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . SortedSet < object > ( null , null , null , null , false ) ) ;
41
- private static readonly MethodInfo setDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . Set < object > ( null , null , null , false ) ) ;
42
- private static readonly MethodInfo bagDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . Bag < object > ( null , null , null , false ) ) ;
43
- private static readonly MethodInfo idBagDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . IdBag < object > ( null , null , null , false ) ) ;
44
- private static readonly MethodInfo listDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . List < object > ( null , null , null , null , false ) ) ;
45
- private static readonly MethodInfo sortedMapDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . SortedMap < object , object > ( null , null , null , null , null , false ) ) ;
46
- private static readonly MethodInfo mapDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . Map < object , object > ( null , null , null , null , false ) ) ;
40
+ private static readonly MethodInfo sortedSetDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . SortedSet < object > ( null , null , null , false ) ) ;
41
+ private static readonly MethodInfo setDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . Set < object > ( null , null , false ) ) ;
42
+ private static readonly MethodInfo bagDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . Bag < object > ( null , null , false ) ) ;
43
+ private static readonly MethodInfo idBagDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . IdBag < object > ( null , null , false ) ) ;
44
+ private static readonly MethodInfo listDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . List < object > ( null , null , null , false ) ) ;
45
+ private static readonly MethodInfo sortedMapDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . SortedMap < object , object > ( null , null , null , null , false ) ) ;
46
+ private static readonly MethodInfo mapDefinition = ReflectHelper . GetMethodDefinition < ICollectionMapperFactory > ( x => x . Map < object , object > ( null , null , null , false ) ) ;
47
47
48
48
/// <summary>
49
49
/// Ctor
@@ -504,55 +504,55 @@ private void addMapper(CommonCollectionMapperData commonCollectionMapperData, Mi
504
504
505
505
if ( _propertyAuditingData . CustomCollectionMapperFactory != null )
506
506
{
507
- collectionMapper = _propertyAuditingData . CustomCollectionMapperFactory . Create ( _mainGenerator . GlobalCfg . EnversProxyFactory , commonCollectionMapperData , elementComponentData , indexComponentData , embeddableElementType ) ;
507
+ collectionMapper = _propertyAuditingData . CustomCollectionMapperFactory . Create ( commonCollectionMapperData , elementComponentData , indexComponentData , embeddableElementType ) ;
508
508
}
509
509
else if ( propertyValueType == typeof ( Set ) )
510
510
{
511
511
if ( _propertyValue . IsSorted )
512
512
{
513
513
var methodInfo = sortedSetDefinition . MakeGenericMethod ( type . ReturnedClass . GetGenericArguments ( ) ) ;
514
514
collectionMapper = ( IPropertyMapper ) methodInfo . Invoke ( collectionProxyMapperFactory ,
515
- new [ ] { _mainGenerator . GlobalCfg . EnversProxyFactory , commonCollectionMapperData , elementComponentData , _propertyValue . Comparer , embeddableElementType } ) ;
515
+ new [ ] { commonCollectionMapperData , elementComponentData , _propertyValue . Comparer , embeddableElementType } ) ;
516
516
}
517
517
else
518
518
{
519
519
var methodInfo = setDefinition . MakeGenericMethod ( type . ReturnedClass . GetGenericArguments ( ) ) ;
520
520
collectionMapper = ( IPropertyMapper ) methodInfo . Invoke ( collectionProxyMapperFactory ,
521
- new object [ ] { _mainGenerator . GlobalCfg . EnversProxyFactory , commonCollectionMapperData , elementComponentData , embeddableElementType } ) ;
521
+ new object [ ] { commonCollectionMapperData , elementComponentData , embeddableElementType } ) ;
522
522
}
523
523
}
524
524
else if ( propertyValueType == typeof ( List ) )
525
525
{
526
526
var methodInfo = listDefinition . MakeGenericMethod ( type . ReturnedClass . GetGenericArguments ( ) ) ;
527
527
collectionMapper = ( IPropertyMapper ) methodInfo . Invoke ( collectionProxyMapperFactory ,
528
- new object [ ] { _mainGenerator . GlobalCfg . EnversProxyFactory , commonCollectionMapperData , elementComponentData , indexComponentData , embeddableElementType } ) ;
528
+ new object [ ] { commonCollectionMapperData , elementComponentData , indexComponentData , embeddableElementType } ) ;
529
529
}
530
530
else if ( propertyValueType == typeof ( Map ) )
531
531
{
532
532
if ( _propertyValue . IsSorted )
533
533
{
534
534
var methodInfo = sortedMapDefinition . MakeGenericMethod ( type . ReturnedClass . GetGenericArguments ( ) ) ;
535
535
collectionMapper = ( IPropertyMapper ) methodInfo . Invoke ( collectionProxyMapperFactory ,
536
- new [ ] { _mainGenerator . GlobalCfg . EnversProxyFactory , commonCollectionMapperData , elementComponentData , indexComponentData , _propertyValue . Comparer , embeddableElementType } ) ;
536
+ new [ ] { commonCollectionMapperData , elementComponentData , indexComponentData , _propertyValue . Comparer , embeddableElementType } ) ;
537
537
}
538
538
else
539
539
{
540
540
var methodInfo = mapDefinition . MakeGenericMethod ( type . ReturnedClass . GetGenericArguments ( ) ) ;
541
541
collectionMapper = ( IPropertyMapper ) methodInfo . Invoke ( collectionProxyMapperFactory ,
542
- new object [ ] { _mainGenerator . GlobalCfg . EnversProxyFactory , commonCollectionMapperData , elementComponentData , indexComponentData , embeddableElementType } ) ;
542
+ new object [ ] { commonCollectionMapperData , elementComponentData , indexComponentData , embeddableElementType } ) ;
543
543
}
544
544
}
545
545
else if ( propertyValueType == typeof ( Bag ) )
546
546
{
547
547
var methodInfo = bagDefinition . MakeGenericMethod ( type . ReturnedClass . GetGenericArguments ( ) ) ;
548
548
collectionMapper = ( IPropertyMapper ) methodInfo . Invoke ( collectionProxyMapperFactory ,
549
- new object [ ] { _mainGenerator . GlobalCfg . EnversProxyFactory , commonCollectionMapperData , elementComponentData , embeddableElementType } ) ;
549
+ new object [ ] { commonCollectionMapperData , elementComponentData , embeddableElementType } ) ;
550
550
}
551
551
else if ( propertyValueType == typeof ( IdentifierBag ) )
552
552
{
553
553
var methodInfo = idBagDefinition . MakeGenericMethod ( type . ReturnedClass . GetGenericArguments ( ) ) ;
554
554
collectionMapper = ( IPropertyMapper ) methodInfo . Invoke ( collectionProxyMapperFactory ,
555
- new object [ ] { _mainGenerator . GlobalCfg . EnversProxyFactory , commonCollectionMapperData , elementComponentData , embeddableElementType } ) ;
555
+ new object [ ] { commonCollectionMapperData , elementComponentData , embeddableElementType } ) ;
556
556
}
557
557
else
558
558
{
0 commit comments