public void Add(IColumnDataType columnType) { if (!_byFieldType.TryAdd(columnType.ColumnType, columnType)) { throw new NFSdbArgumentException(string.Format("Column type of '{0}' already exists in the column registry.", columnType.ColumnType)); } _byDataType.TryAdd(columnType.Clazz, columnType); }
public ColumnSerializerMetadata(EFieldType fieldType, string propertyName, string fieldName, bool nullable = true, int size = 0) { _columnDataType = JournalColumnRegistry.Instance.GetSerializer(fieldType); ColumnType = _columnDataType.ColumnType; PropertyName = propertyName; Size = size; Nullable = nullable; FieldName = fieldName; DataType = _columnDataType.Clazz; }