AppString Class |
Namespace: Omada.OE.Model
[SerializableAttribute] public class AppString : ICloneable, IComparable, IObjectWithId, IObjectWithDataVersion, IComparable<AppString>, IObjectWithGuid
The AppString type exposes the following members.
Name | Description | |
---|---|---|
![]() | AppString(Int32, Int32, Int32, String) |
Constructor for the class
|
![]() | AppString(Int32, Guid, Int32, Int32, String) |
Constructor for the class.
|
Name | Description | |
---|---|---|
![]() | ChangeTime |
ChangeTime from the DB
|
![]() | ClientUsage |
Angiver om strengen anvendes clientside - dvs. om der skal genereres javascript konstanter for den.
|
![]() | CreateTime |
CreateTime from the DB
|
![]() | DataVersion |
Entity data version of the object. Used for optimistic locking of the object
|
![]() | Description |
Description is not always loaded - in which case it is null.
|
![]() | Id |
Internal ID of the AppString
|
![]() | IsChanged |
Angiver om appstring er blevet ændret siden den blev indlæst fra db
|
![]() | LangStrings |
Contains the language specific strings for the AppString.
Specific sort order can be assumed for LangStrings
|
![]() | Name |
Name is not always loaded - in which case it is null.
|
![]() | Owner |
Info about the object and field (e.g. a property description) that owns the appstring (if any).
Can be null.
|
![]() | SourceId |
AppStringSource ID.
|
![]() | TypeId |
AppStringType ID.
|
![]() | UId |
Not all appstrings have a UId.
In general only strings belonging to the 'CUSTOM' source have a UId.
|
Name | Description | |
---|---|---|
![]() | AppendToLanguageStrings |
Appends a text to all language strings.
The applied text is an AppString itself so it can be defined in multiple laignages.
If insertSpace is defined, a space is added before the text.
The method is used for post-fixing the name on a cloned object with " (copy)"
|
![]() | AssignFrom |
Assigns language strings from source.
Existing language strings, for languages not present in source, are preserved.
|
![]() | Clone | |
![]() | CompareStringTo |
Compares two AppString objects using their current language using ToString()
|
![]() | CompareTo(Object) |
Compares two AppString objects.
|
![]() | CompareTo(AppString) |
Compares two AppString objects.
|
![]() | Equals |
Compares two AppString objects.
(Overrides ObjectEquals(Object).) |
![]() ![]() | GetDifferingLanguageIds |
Compares the language strings in two AppString objects and
returns the ids of the languages where they differ.
|
![]() | GetHashCode | (Overrides ObjectGetHashCode.) |
![]() | GetLangStr |
Returns a LangString object for the given langId.
If no object exists the null is returned.
|
![]() | GetLangStrDefault |
Returns a LangString object for the specified language id.
|
![]() | GetSimpleString |
Returns a SimpleAppString object with the current users language string
|
![]() | ResetAll |
Resets ID's etc.
The method is used when creating an copy of an existing AppString object for storage in the database.
|
![]() | SetLanguageString(String) |
Sets the string value of the language string for the active user's language.
If the langstring object doesn't already exist it is created UNLESS it is empty ("").
If the string value for the default language is empty ("") it is
also set to the same string value.
|
![]() | SetLanguageString(String, Int32, Boolean) |
Sets the string value of the language string for the given language.
If the langstring object doesn't already exist it is created UNLESS it is empty ("").
If the string value for the default language is empty ("") it is
also set to the same string value.
|
![]() | SetLanguageStrings |
Method transfers the text to all LangStrings in the source, but only for active languages
The text will be formatted with the args arguments.
|
![]() | ToString |
Returns the language specific string based on the active users language
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |