Table of Contents

Interface ISqlRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public interface ISqlRepository

Methods

ExecuteNonQuery(Tenant, string)

int ExecuteNonQuery(Tenant tenant, string query)

Parameters

tenant Tenant
query string

Returns

int

ExecuteNonQuery(string, string, string)

int ExecuteNonQuery(string connectionString, string databaseType, string query)

Parameters

connectionString string
databaseType string
query string

Returns

int

ExecuteReader(Tenant, string)

IDataReader ExecuteReader(Tenant tenant, string query)

Parameters

tenant Tenant
query string

Returns

IDataReader

ExecuteReader(string, string, string)

IDataReader ExecuteReader(string DBType, string DBConnectionString, string query)

Parameters

DBType string
DBConnectionString string
query string

Returns

IDataReader

ExecuteScript(Tenant, Assembly, string)

bool ExecuteScript(Tenant tenant, Assembly assembly, string filename)

Parameters

tenant Tenant
assembly Assembly
filename string

Returns

bool

ExecuteScript(Tenant, string)

void ExecuteScript(Tenant tenant, string script)

Parameters

tenant Tenant
script string

ExecuteScript(string, string, Assembly, string)

bool ExecuteScript(string connectionString, string databaseType, Assembly assembly, string filename)

Parameters

connectionString string
databaseType string
assembly Assembly
filename string

Returns

bool

GetScriptFromAssembly(Assembly, string)

string GetScriptFromAssembly(Assembly assembly, string fileName)

Parameters

assembly Assembly
fileName string

Returns

string