Class LanguageBranchRepository
Default implementation of ILanguageBranchRepository.
Inheritance
System.Object
LanguageBranchRepository
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration(typeof(ILanguageBranchRepository))]
public class LanguageBranchRepository : ILanguageBranchRepository
Constructors
LanguageBranchRepository(ServiceAccessor<LanguageBranchDB>, LocalizationService)
Initializes a new instance of the LanguageBranchRepository class.
Declaration
public LanguageBranchRepository(ServiceAccessor<LanguageBranchDB> languageBranchDataAccess, LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
ServiceAccessor<LanguageBranchDB> | languageBranchDataAccess | The language branch data access. |
LocalizationService | localizationService | The localization service. |
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. |