Table of Contents

Class SettingRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public class SettingRepository : ISettingRepository
Inheritance
object
SettingRepository
Implements

Constructors

SettingRepository(IDbContextFactory<TenantDBContext>, MasterDBContext, ITenantManager, IMemoryCache)

public SettingRepository(IDbContextFactory<TenantDBContext> tenantContextFactory, MasterDBContext master, ITenantManager tenantManager, IMemoryCache cache)

Parameters

tenantContextFactory IDbContextFactory<TenantDBContext>
master MasterDBContext
tenantManager ITenantManager
cache IMemoryCache

Methods

AddSetting(Setting)

public Setting AddSetting(Setting setting)

Parameters

setting Setting

Returns

Setting

DeleteSetting(string, int)

public void DeleteSetting(string entityName, int settingId)

Parameters

entityName string
settingId int

DeleteSettings(string, int)

public void DeleteSettings(string entityName, int entityId)

Parameters

entityName string
entityId int

GetSetting(string, int)

public Setting GetSetting(string entityName, int settingId)

Parameters

entityName string
settingId int

Returns

Setting

GetSetting(string, int, string)

public Setting GetSetting(string entityName, int entityId, string settingName)

Parameters

entityName string
entityId int
settingName string

Returns

Setting

GetSettings(string)

public IEnumerable<Setting> GetSettings(string entityName)

Parameters

entityName string

Returns

IEnumerable<Setting>

GetSettings(string, int)

public IEnumerable<Setting> GetSettings(string entityName, int entityId)

Parameters

entityName string
entityId int

Returns

IEnumerable<Setting>

UpdateSetting(Setting)

public Setting UpdateSetting(Setting setting)

Parameters

setting Setting

Returns

Setting