Exemplo n.º 1
0
 internal QueryMapperVisitor(Type sourceType, Type destinationType, IQueryable destQuery, IConfigurationProvider config)
 {
     _sourceType        = sourceType;
     _destinationType   = destinationType;
     _destQuery         = destQuery;
     _instanceParameter = Expression.Parameter(destinationType, "dto");
     _memberVisitor     = new MemberAccessQueryMapperVisitor(this, config);
 }
Exemplo n.º 2
0
 internal QueryMapperVisitor(Type sourceType, Type destinationType, IQueryable destQuery,
                             IMappingEngine mappingEngine)
 {
     _sourceType        = sourceType;
     _destinationType   = destinationType;
     _destQuery         = destQuery;
     _instanceParameter = Expression.Parameter(destinationType, "dto");
     _memberVisitor     = new MemberAccessQueryMapperVisitor(this, mappingEngine);
 }