protected void ForSourceMemberCore(MemberInfo memberInfo, Action <ISourceMemberConfigurationExpression> memberOptions) { var srcConfig = new SourceMappingExpression(memberInfo); memberOptions(srcConfig); SourceMemberConfigurations.Add(srcConfig); }
protected void ForSourceMemberCore(string sourceMemberName, Action <ISourceMemberConfigurationExpression> memberOptions) { var memberInfo = Types.SourceType.GetFieldOrProperty(sourceMemberName); var srcConfig = new SourceMappingExpression(memberInfo); memberOptions(srcConfig); SourceMemberConfigurations.Add(srcConfig); }