Class LanguageBranchRepository
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Default implementation of ILanguageBranchRepository.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.DataAbstraction.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration(ServiceType = typeof(ILanguageBranchRepository), Lifecycle = ServiceInstanceScope.Singleton)]
public class LanguageBranchRepository : ILanguageBranchRepositoryConstructors
LanguageBranchRepository(LanguageBranchDB, LocalizationService, ISynchronizedObjectInstanceCache)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Deletes the LanguageBranch with specified id.
Declaration
public void Delete(int languageBranchId)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | languageBranchId | The language branch id. | 
ListAll()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Lists all LanguageBranch instances that are defined.
Declaration
public IList<LanguageBranch> ListAll()Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IList<LanguageBranch> | 
ListEnabled()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Lists all LanguageBranch instances that are defined and enabled.
Declaration
public IList<LanguageBranch> ListEnabled()Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IList<LanguageBranch> | 
Load(CultureInfo)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Loads the first LanguageBranch that is Enabled.
Declaration
public LanguageBranch LoadFirstEnabledBranch()Returns
| Type | Description | 
|---|---|
| LanguageBranch | 
Save(LanguageBranch)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Saves the specified LanguageBranch.
Declaration
public void Save(LanguageBranch languageBranch)Parameters
| Type | Name | Description | 
|---|---|---|
| LanguageBranch | languageBranch | The language branch. | 
