Defines the contract for a database connection, providing methods to retrieve the connection string
and execute queries against the database for a specific data type.
- Namespace
- DbSyncKit
.DB .Interface - Implementing Types
graph BT
Type["IDatabase"]
class Type type-node
Implementing0["Connection"]-.->Type
click Implementing0 "/api/DbSyncKit.MySQL/Connection"
Implementing1["Connection"]-.->Type
click Implementing1 "/api/DbSyncKit.MSSQL/Connection"
Implementing2["Connection"]-.->Type
click Implementing2 "/api/DbSyncKit.SQLite/Connection"
Implementing3["Connection"]-.->Type
click Implementing3 "/api/DbSyncKit.PostgreSQL/Connection"
Syntax
public interface IDatabase
Properties
Name | Property Type | Summary |
---|---|---|
Provider | DatabaseProvider |
Gets the database provider for this connection.
|
Methods
Name | Return Value | Summary |
---|---|---|
ExecuteQuery |
DataSet |
Executes a query against the database
|
GetConnectionString |
string |
Retrieves the connection string for the database.
|
TestConnection |
bool |
Tests weather the connection string is valid or not
|