Class DbRootPathService
Service to manage the root path in the database
Inheritance
System.Object
DbRootPathService
Implements
Namespace: MESL.SqlRace.Domain.Services
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class DbRootPathService : Object, IRootPathService
Constructors
DbRootPathService()
Declaration
public DbRootPathService()
Methods
AddUpdateRootPathSetting(String, String)
Add or update the root path setting in the DB
Declaration
public bool AddUpdateRootPathSetting(string connectionString, string rootPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | |
System.String | rootPath |
Returns
Type | Description |
---|---|
System.Boolean |
CreateRootPathService()
Create the root path service
Declaration
public static IRootPathService CreateRootPathService()
Returns
Type | Description |
---|---|
IRootPathService |
DeleteRootPathSetting(String)
Delete the root path setting in the DB
Declaration
public bool DeleteRootPathSetting(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString |
Returns
Type | Description |
---|---|
System.Boolean |
GetRootPathStoredInDb(String)
Get the root path setting
Declaration
public string GetRootPathStoredInDb(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString |
Returns
Type | Description |
---|---|
System.String |