public ColumnMappingField(FieldInfo field, ColumnAttribute attribute) { this._Field = field; this._ColumnName = string.IsNullOrEmpty(attribute.ColumnName) ? field.Name : attribute.ColumnName; this._ColumnType = attribute.ColumnType; this._ColumnId = attribute.ColumnId; }
public ColumnMappingProperty(PropertyInfo Property, ColumnAttribute attribute) { this._Property = Property; this._ColumnName = string.IsNullOrEmpty(attribute.ColumnName) ? Property.Name : attribute.ColumnName; this._ColumnType = attribute.ColumnType; this._ColumnId = attribute.ColumnId; }