Beispiel #1
0
 public static ObjectTrackingMode TrackAll(MapperContext mapperContext)
 => new ObjectTrackingMode(MappingConfigInfo.AllRuleSetsSourceTypesAndTargetTypes(mapperContext));
Beispiel #2
0
 public ConfiguredIgnoredMember(MappingConfigInfo configInfo, LambdaExpression targetMemberLambda)
     : base(configInfo, targetMemberLambda)
 {
 }
 public bool HasSameTargetTypeAs(MappingConfigInfo otherConfigInfo) => TargetType == otherConfigInfo.TargetType;
 public bool HasCompatibleTypes(MappingConfigInfo otherConfigInfo)
 => ((ITypePair)this).HasCompatibleTypes(otherConfigInfo);
 public string GetConditionDescription(MappingConfigInfo configInfo)
 => _conditionLambda.GetDescription(configInfo);
 public bool HasSameSourceTypeAs(MappingConfigInfo otherConfigInfo) => otherConfigInfo.SourceType == SourceType;
 public bool HasCompatibleTypes(MappingConfigInfo otherConfigInfo)
 => HasCompatibleTypes(otherConfigInfo.SourceType, otherConfigInfo.TargetType);
Beispiel #8
0
 protected UserConfiguredItemBase(MappingConfigInfo configInfo)
     : this(configInfo, QualifiedMember.All)
 {
 }
 public ExceptionCallback(MappingConfigInfo configInfo, Expression callback)
     : base(configInfo)
 {
     Callback = callback;
 }
 public bool IsForSourceType(MappingConfigInfo otherConfigInfo) => IsForSourceType(otherConfigInfo.SourceType);
Beispiel #11
0
 protected UserConfiguredItemBase(MappingConfigInfo configInfo, QualifiedMember targetMember)
 {
     ConfigInfo   = configInfo;
     TargetMember = targetMember;
 }
Beispiel #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));
        }
Beispiel #13
0
 protected UserConfiguredItemBase(MappingConfigInfo configInfo, LambdaExpression targetMemberLambda)
     : this(configInfo, GetTargetMemberOrThrow(targetMemberLambda, configInfo))
 {
 }
Beispiel #14
0
 public ObjectTrackingMode(MappingConfigInfo configInfo)
     : base(configInfo)
 {
 }
Beispiel #15
0
 public MappedObjectCachingSettings(MappingConfigInfo configInfo, bool cache)
     : base(configInfo)
 {
     Cache = cache;
 }
Beispiel #16
0
 public ConfiguredDataSourceFactory GetDataSourceFactoryFor(MappingConfigInfo configInfo)
 => (ConfiguredDataSourceFactory)_dataSourceFactories.First(configInfo, (ci, dsf) => dsf.ConfigInfo == ci);
Beispiel #17
0
 public EntityKeyMappingSetting(MappingConfigInfo configInfo, bool mapKeys)
     : base(configInfo)
 {
     MapKeys = mapKeys;
 }