private Mapping() { FromConventions .SetFieldConvention(new Prefix("X_", new BigCammelCase())); Map <From, To>(); }
private MappingFields() { FromConventions .SetMemberScanningPrecedence(MemberType.Field) .SetFieldConvention(new Prefix("a", new BigCammelCase())); Map <From, To>(); }
private Mapping() { FromConventions .ConditionalConventions <Int64, ToChild>(conv => conv .SetFieldConvention(new Suffix(new Prefix("a", new BigCammelCase()), "ID")) ) .SetFieldConvention(new Prefix("a", new BigCammelCase())); ToConventions .SetFieldConvention(new Prefix("a", new BigCammelCase())); Map <From, To>(); Map <Int64, ToChild>() .FuncMappingRules() .Using(x => new ToChild(x)); }
private MappingMethods() { FromConventions .SetMemberScanningPrecedence(MemberType.Method); Map <From, To>(); }
private MappingProps() { FromConventions .SetMemberScanningPrecedence(MemberType.Property); Map <From, To>(); }