mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
17 lines
451 B
C#
17 lines
451 B
C#
using System;
|
|
using System.Data.Common;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace mRemoteNG.Config.DatabaseConnectors
|
|
{
|
|
public interface IDatabaseConnector : IDisposable
|
|
{
|
|
DbConnection DbConnection();
|
|
DbCommand DbCommand(string dbCommand);
|
|
bool IsConnected { get; }
|
|
void Connect();
|
|
Task ConnectAsync();
|
|
void Disconnect();
|
|
void AssociateItemToThisConnector(DbCommand dbCommand);
|
|
}
|
|
} |