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
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
|