Skip to content

SettingsRepo

Namespace: Database.Repository.SettingsRepo

Repository implementation for accessing and managing topic settings in the database.

public class SettingsRepo : ISettingsRepo

Inheritance ObjectSettingsRepo

Implements ISettingsRepo

Constructors

SettingsRepo(ApplicationDbContext)

Initializes a new instance of the SettingsRepo class with the specified settings context.

public SettingsRepo(ApplicationDbContext applicationDbContext)

Parameters

applicationDbContext ApplicationDbContext

The database context for settings.

Methods

AddTopicSettingAsync(TopicSetting)

public Task<Int32> AddTopicSettingAsync(TopicSetting topicSetting)

Parameters

topicSetting TopicSetting

Returns

Task<Int32>

GetTopicSettingsAsync()

public Task<List<TopicSetting>> GetTopicSettingsAsync()

Returns

Task<List<TopicSetting>>