Class SqlServerBulkActionFactory
Creates instances of IBulkInsert for bulk inserting.
Inheritance
System.Object
SqlServerBulkActionFactory
Implements
Namespace: Kros.Data.BulkActions.SqlServer
Assembly: Kros.Utils.dll
Syntax
public class SqlServerBulkActionFactory : IBulkActionFactory
Constructors
SqlServerBulkActionFactory(SqlConnection)
Initializes a new instance of the SqlServerBulkActionFactory class.
Declaration
public SqlServerBulkActionFactory(SqlConnection connection)
Parameters
Type | Name | Description |
---|---|---|
System.Data.SqlClient.SqlConnection | connection | The connection. |
SqlServerBulkActionFactory(String)
Initializes a new instance of the SqlServerBulkActionFactory class.
Declaration
public SqlServerBulkActionFactory(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string. |
Methods
GetBulkInsert()
Gets the bulk insert.
Declaration
public IBulkInsert GetBulkInsert()
Returns
Type | Description |
---|---|
IBulkInsert | The bulk insert. |
GetBulkInsert(DbTransaction)
Gets the bulk insert.
Declaration
public IBulkInsert GetBulkInsert(DbTransaction externalTransaction)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Common.DbTransaction | externalTransaction | The external transaction. |
Returns
Type | Description |
---|---|
IBulkInsert | The bulk insert. |
GetBulkInsert(DbTransaction, SqlBulkCopyOptions)
Gets the bulk insert.
Declaration
public IBulkInsert GetBulkInsert(DbTransaction externalTransaction, SqlBulkCopyOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Common.DbTransaction | externalTransaction | The external transaction. |
System.Data.SqlClient.SqlBulkCopyOptions | options | The options. |
Returns
Type | Description |
---|---|
IBulkInsert | The bulk insert. |
GetBulkInsert(SqlBulkCopyOptions)
Gets the bulk insert.
Declaration
public IBulkInsert GetBulkInsert(SqlBulkCopyOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.Data.SqlClient.SqlBulkCopyOptions | options | The options. |
Returns
Type | Description |
---|---|
IBulkInsert | The bulk insert. |
GetBulkUpdate()
Gets the bulk update.
Declaration
public IBulkUpdate GetBulkUpdate()
Returns
Type | Description |
---|---|
IBulkUpdate | The bulk update. |
GetBulkUpdate(DbTransaction)
Gets the bulk update.
Declaration
public IBulkUpdate GetBulkUpdate(DbTransaction externalTransaction)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Common.DbTransaction | externalTransaction | The external transaction. |
Returns
Type | Description |
---|---|
IBulkUpdate | The bulk update. |
Register()
Registers factory methods for creation instances to BulkActionFactories.
Declaration
public static void Register()