Search Results for

    Show / Hide Table of Contents

    Class DataLocalization

    Provides methods for localization text manipulation operates on admin.Localization and admin.Localization_Text tables Controller for Localization_Group and Localization_Text

    Inheritance
    System.Object
    DataLocalization
    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: Simplic.Framework.EF.Localization
    Assembly: Simplic.Framework.EF.dll
    Syntax
    public static class DataLocalization

    Properties

    | Improve this Doc View Source

    DefaultLanguageID

    gets or sets the default language default languageID is 0

    Declaration
    public static int DefaultLanguageID { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    GetLanguageModel(Int32)

    Declaration
    public static Language GetLanguageModel(int languageID)
    Parameters
    Type Name Description
    System.Int32 languageID
    Returns
    Type Description
    Language
    | Improve this Doc View Source

    GetOrCreateTextModel(Guid, Int32)

    Loads or creates a LocalizationTextModel for given input The Localization Group must exist

    Declaration
    public static Localization_Text GetOrCreateTextModel(Guid localizationGroup, int languageID)
    Parameters
    Type Name Description
    System.Guid localizationGroup

    localizationGroup must exist in the DataBase

    System.Int32 languageID
    Returns
    Type Description
    Localization_Text
    | Improve this Doc View Source

    GetText(Guid, Language)

    Gets the text for the given key and language

    Declaration
    public static string GetText(Guid key, Language language)
    Parameters
    Type Name Description
    System.Guid key

    admin.Localization.Guid

    Language language

    admin.Language

    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetText(Guid, Nullable<Int32>)

    Gets the text for the given key and language

    Declaration
    public static string GetText(Guid key, int? languageID = null)
    Parameters
    Type Name Description
    System.Guid key

    admin.Localization.Guid

    System.Nullable<System.Int32> languageID

    admin.Language.LanguageId default 0

    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetTextModel(Guid, Int32)

    Loads a LocalizationTextModel for given input

    Declaration
    public static Localization_Text GetTextModel(Guid localizationGroup, int languageID)
    Parameters
    Type Name Description
    System.Guid localizationGroup
    System.Int32 languageID
    Returns
    Type Description
    Localization_Text
    | Improve this Doc View Source

    InitializeNew(Int32)

    Initializes new localization group and returns the new created guid

    Declaration
    public static Guid InitializeNew(int fallbackLanguageID = 0)
    Parameters
    Type Name Description
    System.Int32 fallbackLanguageID
    Returns
    Type Description
    System.Guid
    | Improve this Doc View Source

    SaveTextModel(Localization_Text)

    Saves a given textmodel

    Declaration
    public static void SaveTextModel(Localization_Text model)
    Parameters
    Type Name Description
    Localization_Text model
    | Improve this Doc View Source

    SetFallbackLanguage(Guid, Language)

    Sets the fallbacklange for the given key

    Declaration
    public static void SetFallbackLanguage(Guid key, Language language)
    Parameters
    Type Name Description
    System.Guid key

    admin.Localization.Guid

    Language language

    admin.Language

    | Improve this Doc View Source

    SetFallbackLanguage(Guid, Int32)

    Sets the fallbacklange for the given key

    Declaration
    public static void SetFallbackLanguage(Guid key, int languageID)
    Parameters
    Type Name Description
    System.Guid key

    admin.Localization.Guid

    System.Int32 languageID

    admin.Language.LanguageID

    | Improve this Doc View Source

    SetText(Guid, String, Language)

    Creates or updates the text for the given key in the given language

    Declaration
    public static void SetText(Guid key, string text, Language language)
    Parameters
    Type Name Description
    System.Guid key

    admin.Localization.Guid

    System.String text

    Text

    Language language

    admin.Language

    | Improve this Doc View Source

    SetText(Guid, String, Nullable<Int32>)

    Creates or updates the text for the given key in the given language

    Declaration
    public static void SetText(Guid key, string text, int? languageID = null)
    Parameters
    Type Name Description
    System.Guid key

    admin.Localization.Guid

    System.String text

    Text to save

    System.Nullable<System.Int32> languageID

    admin.Language.LanguageID

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx