public MsAccessBulkInsertColumn( string sourceColumnName, string destinationColumnName, BulkInsertColumnType columnType) { SourceColumnName = Check.NotNullOrWhiteSpace(sourceColumnName, nameof(sourceColumnName)); DestinationColumnName = Check.NotNullOrWhiteSpace(destinationColumnName, nameof(destinationColumnName)); ColumnType = columnType; }
/// <summary> /// Adds a column with name <paramref name="columnName"/> and type <paramref name="columnType"/>. /// </summary> /// <param name="columnName">Column name.</param> /// <param name="columnType">Column type.</param> public void Add(string columnName, BulkInsertColumnType columnType) { Add(new MsAccessBulkInsertColumn(columnName, columnType)); }
/// <summary> /// Vytvorí novú definíciu pre stĺpec <paramref name="columnName">columnName</paramref>, s typom /// <paramref name="columnType">columnType</paramref>. /// </summary> /// <param name="columnName">Názov stĺpca.</param> /// <param name="columnType">Typ stĺpca.</param> /// <exception cref="ArgumentNullException">Vyvolaná, ak názov stĺpca je <see langword="null"/>, alebo zložený /// len z bielych znakov.</exception> /// <remarks></remarks> public MsAccessBulkInsertColumn(string columnName, BulkInsertColumnType columnType) { Check.NotNullOrWhiteSpace(columnName, nameof(columnName)); ColumnName = columnName; ColumnType = columnType; }