consolidate interface and implementation classes
This commit is contained in:
@ -12,6 +12,25 @@ using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Repository
|
||||
{
|
||||
public interface ISqlRepository
|
||||
{
|
||||
void ExecuteScript(Tenant tenant, string script);
|
||||
|
||||
bool ExecuteScript(string connectionString, string databaseType, Assembly assembly, string filename);
|
||||
|
||||
bool ExecuteScript(Tenant tenant, Assembly assembly, string filename);
|
||||
|
||||
int ExecuteNonQuery(Tenant tenant, string query);
|
||||
|
||||
int ExecuteNonQuery(string connectionString, string databaseType, string query);
|
||||
|
||||
IDataReader ExecuteReader(Tenant tenant, string query);
|
||||
|
||||
IDataReader ExecuteReader(string DBType, string DBConnectionString, string query);
|
||||
|
||||
string GetScriptFromAssembly(Assembly assembly, string fileName);
|
||||
}
|
||||
|
||||
public class SqlRepository : ISqlRepository
|
||||
{
|
||||
private IConfigurationRoot _config;
|
||||
|
Reference in New Issue
Block a user