Interface IBulkInsertConfigurator<T>
Configures bulk insert operations to execute.
Namespace: Gossip.Connection.Fluent
Assembly: Gossip.dll
Syntax
public interface IBulkInsertConfigurator<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of data being bulk inserted. |
Methods
| Improve this Doc View SourceExecuteAsync()
Execute the configured bulk insert operation.
Declaration
Task ExecuteAsync()
Returns
| Type | Description |
|---|---|
| Task |
IntoTable(String)
Configure which table to perform a bulk insert into.
Declaration
IBulkInsertConfigurator<T> IntoTable(string tableName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | tableName | The name of the table. |
Returns
| Type | Description |
|---|---|
| IBulkInsertConfigurator<T> |
WithColumnMapping(Dictionary<String, String>)
Configure the column mappings for the bulk insert operation.
Declaration
IBulkInsertConfigurator<T> WithColumnMapping(Dictionary<string, string> columnMappings)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<String, String> | columnMappings | A dictionary of column mappings. |
Returns
| Type | Description |
|---|---|
| IBulkInsertConfigurator<T> |
WithTimeout(Int32)
Configure a timeout for the bulk insert operation.
Declaration
IBulkInsertConfigurator<T> WithTimeout(int timeoutInSeconds)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | timeoutInSeconds | The timeout, specified in seconds. |
Returns
| Type | Description |
|---|---|
| IBulkInsertConfigurator<T> |