public OneToManyMapperConstraints()
 {
     _mapper = new OneToManyMapper();
     _mapper.Add(10, 100);
     _mapper.Add(10, 101);
     _mapper.Add(10, 102);
 }
 public OneToManyMapperTests()
 {
     _mapper = new OneToManyMapper();
     _mapper.Add(10, 100);
     _mapper.Add(10, 101);
     _mapper.Add(10, 102);
     _mapper.Add(20, 200);
     _mapper.Add(20, 201);
     _mapper.Add(30, 300);
     _mapper.Add(30, 301);
     _mapper.Add(40, 400);
     _mapper.Add(40, 401);
     _mapper.Add(40, 402);
 }
 protected void BeforeMapOneToMany(IModelInspector modelInspector, PropertyPath member, IOneToManyMapper collectionRelationOneToManyCustomizer)
 {
     collectionRelationOneToManyCustomizer.Class(member.LocalMember.GetPropertyOrFieldType().GetGenericArguments()[0]);
 }
Ejemplo n.º 4
0
 public static void MapOneToMany(IModelInspector modelInspector, PropertyPath member, IOneToManyMapper map)
 {
 }
Ejemplo n.º 5
0
 public void InvokeCustomizers(PropertyPath member, IOneToManyMapper mapper)
 {
     InvokeCustomizers(collectionRelationOneToManyCustomizers, member, mapper);
 }
 protected virtual void OnBeforeMapOneToMany(IModelInspector modelInspector, PropertyPath member, IOneToManyMapper collectionRelationOneToManyCustomizer)
 {
 }
Ejemplo n.º 7
0
 protected virtual void OnAfterMapOneToMany(IModelInspector modelInspector, PropertyPath member, IOneToManyMapper collectionRelationOneToManyCustomizer)
 {
 }
Ejemplo n.º 8
0
 public MapperDecorator(IOneToManyMapper oneToManyMapper)
 {
     _oneToManyMapper = oneToManyMapper ?? throw new ArgumentException(nameof(oneToManyMapper));
 }