Class LanguageBranchRepository
Default implementation of ILanguageBranchRepository.
Inheritance
System.Object
LanguageBranchRepository
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 LanguageBranchRepository class.
Declaration
public LanguageBranchRepository(LanguageBranchDB languageBranchDataAccess, LocalizationService localizationService, ISynchronizedObjectInstanceCache cacheInstance)
Parameters
Type | Name | Description |
---|---|---|
LanguageBranchDB | languageBranchDataAccess | The language branch data access. |
LocalizationService | localizationService | The localization service. |
ISynchronizedObjectInstanceCache | cacheInstance | The cache. |
Methods
Delete(Int32)
Deletes the LanguageBranch with specified id.
Declaration
public void Delete(int languageBranchId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | languageBranchId | The language branch id. |
ListAll()
Lists all LanguageBranch instances that are defined.
Declaration
public IList<LanguageBranch> ListAll()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<LanguageBranch> |
ListEnabled()
Lists all LanguageBranch instances that are defined and enabled.
Declaration
public IList<LanguageBranch> ListEnabled()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<LanguageBranch> |
Load(CultureInfo)
Loads the LanguageBranch for the specified culture.
Declaration
public LanguageBranch Load(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | The culture. |
Returns
Type | Description |
---|---|
LanguageBranch |
Load(Int32)
Loads the LanguageBranch with the specified identifier.
Declaration
public LanguageBranch Load(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The id. |
Returns
Type | Description |
---|---|
LanguageBranch |
LoadFirstEnabledBranch()
Loads the first LanguageBranch that is Enabled.
Declaration
public LanguageBranch LoadFirstEnabledBranch()
Returns
Type | Description |
---|---|
LanguageBranch |
Save(LanguageBranch)
Saves the specified LanguageBranch.
Declaration
public void Save(LanguageBranch languageBranch)
Parameters
Type | Name | Description |
---|---|---|
LanguageBranch | languageBranch | The language branch. |