Class BulkActionFactories
Representing set of registered IBulkActionFactory.
Inheritance
System.Object
BulkActionFactories
Namespace: Kros.Data.BulkActions
Assembly: Kros.Utils.dll
Syntax
public static class BulkActionFactories
Methods
GetFactory(DbConnection)
Gets the IBulkActionFactory with specific connection.
Declaration
public static IBulkActionFactory GetFactory(DbConnection connection)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Common.DbConnection | connection | The connection. |
Returns
Type | Description |
---|---|
IBulkActionFactory | The IBulkActionFactory instance. |
GetFactory(String, String)
Gets the IBulkActionFactory with specific connection string.
Declaration
public static IBulkActionFactory GetFactory(string connectionString, string adoClientName)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string. |
System.String | adoClientName | Name of the ado client. (e.g. System.Data.SqlClient.SqlConnection it's: System.Data.SqlClient) |
Returns
Type | Description |
---|---|
IBulkActionFactory | The IBulkActionFactory instance. |
Register<TConnection>(String, Func<DbConnection, IBulkActionFactory>, Func<String, IBulkActionFactory>)
Registers the specified ADO client name.
Declaration
public static void Register<TConnection>(string adoClientName, Func<DbConnection, IBulkActionFactory> factoryByConnection, Func<string, IBulkActionFactory> factoryByConnectionString)
where TConnection : DbConnection
Parameters
Type | Name | Description |
---|---|---|
System.String | adoClientName | Name of the database client. |
System.Func<System.Data.Common.DbConnection, IBulkActionFactory> | factoryByConnection | The factory by connection. |
System.Func<System.String, IBulkActionFactory> | factoryByConnectionString | The factory by connection string. |
Type Parameters
Name | Description |
---|---|
TConnection | The type of the connection. |