Table of Contents

Class LanguageRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public class LanguageRepository : ILanguageRepository
Inheritance
LanguageRepository
Implements

Constructors

LanguageRepository(IDbContextFactory<TenantDBContext>)

public LanguageRepository(IDbContextFactory<TenantDBContext> dbContextFactory)

Parameters

dbContextFactory IDbContextFactory<TenantDBContext>

Methods

AddLanguage(Language)

public Language AddLanguage(Language language)

Parameters

language Language

Returns

Language

DeleteLanguage(int)

public void DeleteLanguage(int languageId)

Parameters

languageId int

GetLanguage(int)

public Language GetLanguage(int languageId)

Parameters

languageId int

Returns

Language

GetLanguages(int)

public IEnumerable<Language> GetLanguages(int siteId)

Parameters

siteId int

Returns

IEnumerable<Language>

UpdateLanguage(Language)

public void UpdateLanguage(Language language)

Parameters

language Language