public SqlColumnInfo(MemberInfo memberInfo, string columnName, IMemberConverter converter, ISerializationTypeMapping typeMapping) : this(typeMapping, columnName, converter) { if (memberInfo == null) { throw new ArgumentNullException("memberInfo"); } this.memberInfo = memberInfo; }
public SqlColumnInfo(ISerializationTypeMapping typeMapping, string columnName, IMemberConverter converter) { if (string.IsNullOrEmpty(columnName)) { throw new ArgumentNullException("columnName"); } if (converter == null) { throw new ArgumentNullException("converter"); } if (typeMapping == null) { throw new ArgumentNullException("typeMapping"); } name = columnName; this.converter = converter; this.typeMapping = typeMapping; }
public void RegisterMapping(Type type, ISerializationTypeMapping mapping) { lock (mappings) { mappings.Add(type, mapping); } }