Class LanguageBranchRepository
Default implementation of ILanguage
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 Language
Declaration
public LanguageBranchRepository(ServiceAccessor<LanguageBranchDB> languageBranchDataAccess, LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
Service |
languageBranchDataAccess | The language branch data access. |
Localization |
localizationService | The localization service. |
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. |