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]); }
public static void MapOneToMany(IModelInspector modelInspector, PropertyPath member, IOneToManyMapper map) { }
public void InvokeCustomizers(PropertyPath member, IOneToManyMapper mapper) { InvokeCustomizers(collectionRelationOneToManyCustomizers, member, mapper); }
protected virtual void OnBeforeMapOneToMany(IModelInspector modelInspector, PropertyPath member, IOneToManyMapper collectionRelationOneToManyCustomizer) { }
protected virtual void OnAfterMapOneToMany(IModelInspector modelInspector, PropertyPath member, IOneToManyMapper collectionRelationOneToManyCustomizer) { }
public MapperDecorator(IOneToManyMapper oneToManyMapper) { _oneToManyMapper = oneToManyMapper ?? throw new ArgumentException(nameof(oneToManyMapper)); }