Class LanguageBranchRepository
Default implementation of ILanguage
Inheritance
Implements
Namespace: EPiServer.DataAbstraction.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class LanguageBranchRepository : Object, ILanguageBranchRepository
Constructors
LanguageBranchRepository(LanguageBranchDB, LocalizationService, ISynchronizedObjectInstanceCache)
Initializes a new instance of the Language
Declaration
public LanguageBranchRepository(LanguageBranchDB languageBranchDataAccess, LocalizationService localizationService, ISynchronizedObjectInstanceCache cacheInstance)
Parameters
Type | Name | Description |
---|---|---|
Language |
languageBranchDataAccess | The language branch data access. |
Localization |
localizationService | The localization service. |
ISynchronized |
cacheInstance | The cache. |
Methods
Delete(Int32)
Deletes the Language
Declaration
public void Delete(int languageBranchId)
Parameters
Type | Name | Description |
---|---|---|
System. |
languageBranchId | The language branch id. |
ListAll()
Lists all Language
Declaration
public IList<LanguageBranch> ListAll()
Returns
Type | Description |
---|---|
System. |
ListEnabled()
Lists all Language
Declaration
public IList<LanguageBranch> ListEnabled()
Returns
Type | Description |
---|---|
System. |
Load(CultureInfo)
Loads the Language
Declaration
public LanguageBranch Load(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System. |
culture | The culture. |
Returns
Type | Description |
---|---|
Language |
Load(Int32)
Loads the Language
Declaration
public LanguageBranch Load(int id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The id. |
Returns
Type | Description |
---|---|
Language |
LoadFirstEnabledBranch()
Loads the first Language
Declaration
public LanguageBranch LoadFirstEnabledBranch()
Returns
Type | Description |
---|---|
Language |
Save(LanguageBranch)
Saves the specified Language
Declaration
public void Save(LanguageBranch languageBranch)
Parameters
Type | Name | Description |
---|---|---|
Language |
languageBranch | The language branch. |