16 lines
510 B
C#
Executable File
16 lines
510 B
C#
Executable File
using System.Data.Common;
|
|
|
|
namespace Opsoft.NetCore.O3App.Shared.Data
|
|
{
|
|
public interface IDbConnectionFactory
|
|
{
|
|
DbConnection GetConnection(string dbName, bool readOnly = true, bool checkWhere = false);
|
|
|
|
void Set(string dbName, string connectionString, DbProvider dbProvider);
|
|
|
|
void Set(string dbName, string readConnectionString, DbProvider readDbProvider, string writeConnectionString, DbProvider writeDbProvider);
|
|
|
|
void UnSet(string dbName);
|
|
}
|
|
}
|