public AutoPersistenceModel()
        {
            expressions = new AutoMappingExpressions();
            cfg         = new ExpressionBasedAutomappingConfiguration(expressions);
            autoMapper  = new AutoMapper(cfg, Conventions, inlineOverrides);

            componentResolvers.Add(new AutomappedComponentResolver(autoMapper, cfg));
        }
Example #2
0
        public AutoMapper(AutoMappingExpressions expressions, IConventionFinder conventionFinder, IEnumerable <InlineOverride> inlineOverrides)
        {
            this.expressions     = expressions;
            this.inlineOverrides = inlineOverrides;

            mappingRules = new List <IAutoMapper>
            {
                new AutoMapIdentity(expressions),
                new AutoMapVersion(),
                new AutoMapComponent(expressions, this),
                new AutoMapProperty(conventionFinder, expressions),
                new AutoMapManyToMany(expressions),
                new AutoMapManyToOne(),
                new AutoMapOneToMany(expressions),
            };
        }
Example #3
0
        public AutoMapper(AutoMappingExpressions expressions, IConventionFinder conventionFinder, IEnumerable<InlineOverride> inlineOverrides)
        {
            this.expressions = expressions;
            this.inlineOverrides = inlineOverrides;

            mappingRules = new List<IAutoMapper>
            {
                new AutoMapIdentity(expressions),
                new AutoMapVersion(),
                new AutoMapComponent(expressions, this),
                new AutoMapProperty(conventionFinder, expressions),
                new AutoMapManyToMany(expressions),
                new AutoMapManyToOne(),
                new AutoMapOneToMany(expressions),
            };
        }
 public AutoPersistenceModel()
 {
     expressions = new AutoMappingExpressions();
     cfg         = new ExpressionBasedAutomappingConfiguration(expressions);
     autoMapper  = new AutoMapper(cfg, Conventions, inlineOverrides);
 }
 public AutoMapOneToMany(AutoMappingExpressions expressions)
 {
     simpleTypeCollectionStep = new AutoSimpleTypeCollection(expressions);
     entityCollectionStep = new AutoEntityCollection(expressions);
 }
 public ExpressionBasedAutomappingConfiguration(AutoMappingExpressions expressions)
 {
     this.expressions = expressions;
 }
Example #7
0
 public AutoPersistenceModel(AutoMapper customAutomapper)
 {
     Expressions = new AutoMappingExpressions();
     autoMapper  = customAutomapper;
 }
Example #8
0
 public AutoMapManyToMany(AutoMappingExpressions expressions)
 {
     this.expressions = expressions;
 }
 public AutoMapManyToMany(AutoMappingExpressions conventions)
 {
     this.conventions = conventions;
 }
Example #10
0
 public AutoMapProperty(IConventionFinder conventionFinder, AutoMappingExpressions expressions)
 {
     this.conventionFinder = conventionFinder;
     this.expressions      = expressions;
 }
 public AutoEntityCollection(AutoMappingExpressions expressions)
 {
     this.expressions = expressions;
     keys = new AutoKeyMapper(expressions);
     collections = new AutoCollectionCreator();
 }
 public AutoMapIdentity(AutoMappingExpressions conventions)
 {
     this.expressions = conventions;
 }
 public ExpressionBasedAutomappingConfiguration(AutoMappingExpressions expressions)
 {
     this.expressions = expressions;
 }
Example #14
0
 internal PrivateAutoMapper(AutoMappingExpressions expressions, IConventionFinder conventionFinder, IEnumerable <InlineOverride> inlineOverrides)
     : base(expressions, conventionFinder, inlineOverrides)
 {
     localExpressions = expressions;
 }
 public AutoMapComponent(AutoMappingExpressions expressions, AutoMapper mapper)
 {
     this.expressions = expressions;
     this.mapper = mapper;
 }
 internal PrivateAutoMapper(AutoMappingExpressions expressions, IConventionFinder conventionFinder, IEnumerable<InlineOverride> inlineOverrides)
     : base(expressions, conventionFinder, inlineOverrides)
 {
     localExpressions = expressions;
 }
 public AutoMapProperty(IConventionFinder conventionFinder, AutoMappingExpressions expressions)
 {
     this.conventionFinder = conventionFinder;
     this.expressions = expressions;
 }
 public AutoMapComponent(AutoMappingExpressions expressions, AutoMapper mapper)
 {
     this.expressions = expressions;
     this.mapper      = mapper;
 }
Example #19
0
 public AutoKeyMapper(AutoMappingExpressions expressions)
 {
     this.expressions = expressions;
 }
 public AutoMapIdentity(AutoMappingExpressions conventions)
 {
     this.expressions = conventions;
 }
 public AutoMapManyToMany(AutoMappingExpressions expressions)
 {
     this.expressions = expressions;
 }
Example #22
0
 public AutoPersistenceModel()
 {
     Expressions = new AutoMappingExpressions();
     autoMapper  = new AutoMapper(Expressions, Conventions, inlineOverrides);
 }