Class MsAccessBulkActionFactory
Creates instances of IBulkInsert for bulk inserting.
Inheritance
System.Object
MsAccessBulkActionFactory
Implements
Namespace: Kros.Data.BulkActions.MsAccess
Assembly: Kros.Utils.MsAccess.dll
Syntax
public class MsAccessBulkActionFactory : IBulkActionFactory
Constructors
MsAccessBulkActionFactory(OleDbConnection)
Initializes a new instance of the MsAccessBulkActionFactory class.
Declaration
public MsAccessBulkActionFactory(OleDbConnection connection)
Parameters
Type | Name | Description |
---|---|---|
System.Data.OleDb.OleDbConnection | connection | The connection. |
MsAccessBulkActionFactory(String)
Initializes a new instance of the MsAccessBulkActionFactory class.
Declaration
public MsAccessBulkActionFactory(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, Int32)
Gets the bulk insert.
Declaration
public IBulkInsert GetBulkInsert(DbTransaction externalTransaction, int csvFileCodePage)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Common.DbTransaction | externalTransaction | The external transaction. |
System.Int32 | csvFileCodePage | The CSV file code page. |
Returns
Type | Description |
---|---|
IBulkInsert | The bulk insert. |
GetBulkInsert(DbTransaction, Int32, Char)
Gets the bulk insert.
Declaration
public IBulkInsert GetBulkInsert(DbTransaction externalTransaction, int csvFileCodePage, char valueDelimiter)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Common.DbTransaction | externalTransaction | The external transaction. |
System.Int32 | csvFileCodePage | The CSV file code page. |
System.Char | valueDelimiter | The value delimiter. |
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()