Click or drag to resize

AppString Class

The AppString object is used for multi lingual captions and labels in the application.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelAppString

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public class AppString : ICloneable, IComparable, 
	IObjectWithId, IObjectWithDataVersion, IComparable<AppString>, IObjectWithGuid

The AppString type exposes the following members.

Constructors
  NameDescription
Public methodAppString(Int32, Int32, Int32, String)
Constructor for the class
Public methodAppString(Int32, Guid, Int32, Int32, String)
Constructor for the class.
Top
Properties
  NameDescription
Public propertyChangeTime
ChangeTime from the DB
Public propertyClientUsage
Angiver om strengen anvendes clientside - dvs. om der skal genereres javascript konstanter for den.
Public propertyCreateTime
CreateTime from the DB
Public propertyDataVersion
Entity data version of the object. Used for optimistic locking of the object
Public propertyDescription
Description is not always loaded - in which case it is null.
Public propertyId
Internal ID of the AppString
Public propertyIsChanged
Angiver om appstring er blevet ændret siden den blev indlæst fra db
Public propertyLangStrings
Contains the language specific strings for the AppString. Specific sort order can be assumed for LangStrings
Public propertyName
Name is not always loaded - in which case it is null.
Public propertyOwner
Info about the object and field (e.g. a property description) that owns the appstring (if any). Can be null.
Public propertySourceId
AppStringSource ID.
Public propertyTypeId
AppStringType ID.
Public propertyUId
Not all appstrings have a UId. In general only strings belonging to the 'CUSTOM' source have a UId.
Top
Methods
  NameDescription
Public methodAppendToLanguageStrings
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)"
Public methodAssignFrom
Assigns language strings from source. Existing language strings, for languages not present in source, are preserved.
Public methodClone
Public methodCompareStringTo
Compares two AppString objects using their current language using ToString()
Public methodCompareTo(Object)
Compares two AppString objects.
Public methodCompareTo(AppString)
Compares two AppString objects.
Public methodEquals
Compares two AppString objects.
(Overrides ObjectEquals(Object).)
Public methodStatic memberGetDifferingLanguageIds
Compares the language strings in two AppString objects and returns the ids of the languages where they differ.
Public methodGetHashCode
(Overrides ObjectGetHashCode.)
Public methodGetLangStr
Returns a LangString object for the given langId. If no object exists the null is returned.
Public methodGetLangStrDefault
Returns a LangString object for the specified language id.
Public methodGetSimpleString
Returns a SimpleAppString object with the current users language string
Public methodResetAll
Resets ID's etc. The method is used when creating an copy of an existing AppString object for storage in the database.
Public methodSetLanguageString(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.
Public methodSetLanguageString(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.
Public methodSetLanguageStrings
Method transfers the text to all LangStrings in the source, but only for active languages The text will be formatted with the args arguments.
Public methodToString
Returns the language specific string based on the active users language
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
Explicit Interface Implementations
See Also