示例#1
0
 private Mapper(MapperContext context)
 {
     Context        = context;
     Context.Mapper = this;
 }
 public static Expression GetValueConversion(this MapperContext context, Expression value, Type targetType)
 => context.ValueConverters.GetConversion(value, targetType);
 public MappingExecutor(TSource source, MapperContext mapperContext)
 {
     _source       = source;
     MapperContext = mapperContext;
 }
 public static Member GetIdentifierOrNull(this MapperContext context, Type type)
 => context.Naming.GetIdentifierOrNull(type);
 public ProjectionExecutor(MapperContext mapperContext, IQueryable <TSourceElement> sourceQueryable)
 {
     _mapperContext   = mapperContext;
     _sourceQueryable = sourceQueryable;
 }
示例#6
0
 public MappingExecutor(MappingRuleSet ruleSet, MapperContext mapperContext)
 {
     RuleSet       = ruleSet;
     MapperContext = mapperContext;
 }
示例#7
0
 private Mapper(MapperContext mapperContext)
 {
     _mapperContext = mapperContext;
 }
 public MappingExecutor(TSource source, MapperContext mapperContext)
 {
     _source       = source;
     MapperContext = mapperContext.ThrowIfDisposed();
 }