Table of Contents

Class SqlRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public class SqlRepository : ISqlRepository
Inheritance
SqlRepository
Implements

Constructors

SqlRepository(IConfigurationRoot)

public SqlRepository(IConfigurationRoot config)

Parameters

config IConfigurationRoot

Methods

ExecuteNonQuery(Tenant, string)

public int ExecuteNonQuery(Tenant tenant, string query)

Parameters

tenant Tenant
query string

Returns

int

ExecuteNonQuery(string, string, string)

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

Parameters

connectionString string
databaseType string
query string

Returns

int

ExecuteReader(Tenant, string)

public IDataReader ExecuteReader(Tenant tenant, string query)

Parameters

tenant Tenant
query string

Returns

IDataReader

ExecuteReader(string, string, string)

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

Parameters

DBType string
DBConnectionString string
query string

Returns

IDataReader

ExecuteScript(Tenant, Assembly, string)

public bool ExecuteScript(Tenant tenant, Assembly assembly, string fileName)

Parameters

tenant Tenant
assembly Assembly
fileName string

Returns

bool

ExecuteScript(Tenant, string)

public void ExecuteScript(Tenant tenant, string script)

Parameters

tenant Tenant
script string

ExecuteScript(string, string, Assembly, string)

public bool ExecuteScript(string connectionString, string databaseType, Assembly assembly, string fileName)

Parameters

connectionString string
databaseType string
assembly Assembly
fileName string

Returns

bool

GetScriptFromAssembly(Assembly, string)

public string GetScriptFromAssembly(Assembly assembly, string fileName)

Parameters

assembly Assembly
fileName string

Returns

string