Exemplo n.º 1
0
 public static ObjectTrackingMode TrackAll(MapperContext mapperContext)
 => new ObjectTrackingMode(MappingConfigInfo.AllRuleSetsSourceTypesAndTargetTypes(mapperContext));
Exemplo n.º 2
0
 public ConfiguredIgnoredMember(MappingConfigInfo configInfo, LambdaExpression targetMemberLambda)
     : base(configInfo, targetMemberLambda)
 {
 }
Exemplo n.º 3
0
 public bool HasSameTargetTypeAs(MappingConfigInfo otherConfigInfo) => TargetType == otherConfigInfo.TargetType;
Exemplo n.º 4
0
 public bool HasCompatibleTypes(MappingConfigInfo otherConfigInfo)
 => ((ITypePair)this).HasCompatibleTypes(otherConfigInfo);
Exemplo n.º 5
0
 public string GetConditionDescription(MappingConfigInfo configInfo)
 => _conditionLambda.GetDescription(configInfo);
Exemplo n.º 6
0
 public bool HasSameSourceTypeAs(MappingConfigInfo otherConfigInfo) => otherConfigInfo.SourceType == SourceType;
Exemplo n.º 7
0
 public bool HasCompatibleTypes(MappingConfigInfo otherConfigInfo)
 => HasCompatibleTypes(otherConfigInfo.SourceType, otherConfigInfo.TargetType);
Exemplo n.º 8
0
 protected UserConfiguredItemBase(MappingConfigInfo configInfo)
     : this(configInfo, QualifiedMember.All)
 {
 }
Exemplo n.º 9
0
 public ExceptionCallback(MappingConfigInfo configInfo, Expression callback)
     : base(configInfo)
 {
     Callback = callback;
 }
Exemplo n.º 10
0
 public bool IsForSourceType(MappingConfigInfo otherConfigInfo) => IsForSourceType(otherConfigInfo.SourceType);
Exemplo n.º 11
0
 protected UserConfiguredItemBase(MappingConfigInfo configInfo, QualifiedMember targetMember)
 {
     ConfigInfo   = configInfo;
     TargetMember = targetMember;
 }
Exemplo n.º 12
0
        private static QualifiedMember GetTargetMemberOrThrow(LambdaExpression lambda, MappingConfigInfo configInfo)
        {
            var targetMember = lambda.ToTargetMemberOrNull(
                configInfo.TargetType,
                configInfo.MapperContext,
                out var failureReason);

            return(targetMember ?? throw new MappingConfigurationException(failureReason));
        }
Exemplo n.º 13
0
 protected UserConfiguredItemBase(MappingConfigInfo configInfo, LambdaExpression targetMemberLambda)
     : this(configInfo, GetTargetMemberOrThrow(targetMemberLambda, configInfo))
 {
 }
Exemplo n.º 14
0
 public ObjectTrackingMode(MappingConfigInfo configInfo)
     : base(configInfo)
 {
 }
Exemplo n.º 15
0
 public MappedObjectCachingSettings(MappingConfigInfo configInfo, bool cache)
     : base(configInfo)
 {
     Cache = cache;
 }
Exemplo n.º 16
0
 public ConfiguredDataSourceFactory GetDataSourceFactoryFor(MappingConfigInfo configInfo)
 => (ConfiguredDataSourceFactory)_dataSourceFactories.First(configInfo, (ci, dsf) => dsf.ConfigInfo == ci);
Exemplo n.º 17
0
 public EntityKeyMappingSetting(MappingConfigInfo configInfo, bool mapKeys)
     : base(configInfo)
 {
     MapKeys = mapKeys;
 }