public override void Configure(ITypeBuilderContainer container) { foreach (var route in _routeInformation) { container.AddVisitor(new PropertyVisitor(typeof(string), route)); } }
public override void Configure(ITypeBuilderContainer container) { var propVisitor = new PropertyVisitor(_propType, _propName); if (_attributeFactories != null) _attributeFactories.ToList().ForEach(propVisitor.AddCustomAttributeFactory); container.AddVisitor(propVisitor); }
public override void Configure(ITypeBuilderContainer container) { var propVisitor = new PropertyVisitor(_propType, _propName); if (_attributeFactories != null) { _attributeFactories.ToList().ForEach(propVisitor.AddCustomAttributeFactory); } container.AddVisitor(propVisitor); }
public override void Configure(ITypeBuilderContainer container) { var aggregateVisitor = new AggregateTypeBuilder(_originalType, AggregateFieldName); container.AddVisitor(aggregateVisitor); foreach (var property in _originalType.GetProperties()) { if (_complexTypes.Contains(property.PropertyType)) continue; aggregateVisitor.AddVisitor( new AggregatedPropertyVisitor(property) ); } }
public override void Configure(ITypeBuilderContainer container) { var aggregateVisitor = new AggregateTypeBuilder(_originalType, AggregateFieldName); container.AddVisitor(aggregateVisitor); foreach (var property in _originalType.GetProperties()) { if (_complexTypes.Contains(property.PropertyType)) { continue; } aggregateVisitor.AddVisitor( new AggregatedPropertyVisitor(property) ); } }
public override void Configure(ITypeBuilderContainer container) { var propertyVisitior = new PropertyVisitor(_propertyType, _propertyName); container.AddVisitor(propertyVisitior); }