The TranslationHelper type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
TranslationHelper |
Constructor.
| |
TranslationHelper(DataTable) |
Constructor. Creates the helper initialized with given translation table.
|
Methods
Name | Description | |
---|---|---|
AddIDTranslation |
Adds the ID translation to the translation table.
| |
Clear |
Clears the translation table.
| |
Equals | (Inherited from Object.) | |
FilterExistingRecords |
Filters the existing records from the given array.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCodeName(String, Int32) |
Returns the code name of the specified object.
| |
GetCodeName(String, Int32, String) |
Returns the code name of the specified object.
| |
GetCodeNameColumn |
Gets the code name column for specified object type.
| |
GetCodeNameFromDB |
Gets the object code name from the database.
| |
GetCodeNamesFromDB |
Gets the code names from database and returns Hastable of couples [ID] -> [Codename]
| |
GetDefaultValue |
Gets default value.
| |
GetEmptyTable |
Returns empty translation table.
| |
GetGroupIDColumn |
Gets the group ID column for specified object type.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetID(String, String, String, Int32, Int32) |
Returns the object ID for specified record.
| |
GetID(String, String, String, Int32, Int32, Int32) |
Returns the object ID for specified record.
| |
GetIDColumn |
Gets the ID column for specified object type.
| |
GetIDFromDB |
Gets the object ID from the database.
| |
GetNewID(String, Int32, String, Int32, String, String, String) |
Gets the new ID for given old ID.
| |
GetNewID(String, Int32, String, Int32, String, String, String, Boolean, Int32 ) |
Gets the new ID for given old ID.
| |
GetParentIDColumn |
Gets the parent ID column for specified object type.
| |
GetParentType |
Gets the parent object type for specified object type.
| |
GetRecord(String, Int32) |
Gets the record by ID.
| |
GetRecord(String, String, String, Int32, Int32) |
Gets the record by ID.
| |
GetSafeClassName |
Gets the safe class name.
| |
GetSiteIDColumn |
Gets the site id column for specified object type.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasRecords |
Returns true if the helper contains some records.
| |
ChangeCodeName |
Changes the object code name in the table.
| |
IsEmpty |
Determines whether the given translation helper contains any translations or not.
| |
IsExcluded |
Returns true of the column is excluded.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RecordExists(String, Int32) |
Returns true if specified record exists in translation table.
| |
RecordExists(String, String, String, Int32, Int32) |
Returns true if specified record exists in translation table.
| |
RegisterDynamicRecords(DataTable, String, String, String, String ) |
Registers the dynamic records from the given table.
| |
RegisterDynamicRecords(DataView, String, String, String, String ) |
Registers the records from the given table.
| |
RegisterRecord(String, Int32, String, Int32) |
Registers the record within given translation table.
| |
RegisterRecord(String, Int32, String, String, Int32, String, Int32) |
Registers the record within given translation table.
| |
RegisterRecords(DataTable, String, String, String) |
Registers the records from the given table.
| |
RegisterRecords(String, IList Int32 , String, String ) |
Registers the records from the given ID list.
| |
RegisterRecords(DataTable, String, String, String, String ) |
Registers the records from the given table.
| |
RegisterRecords(DataView, String, String, String, String ) |
Registers the records from the given table.
| |
RegisterRecords(DataTable, String, String, String, String, String, String) |
Registers the records from the given table.
| |
RemoveDefaultValue |
Removes default value.
| |
SetDefaultValue |
Sets default value.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TranslateColumn(DataRow, String, String, Int32) |
Translates the DataRow column.
| |
TranslateColumn(GeneralizedInfo, String, String, Int32, Boolean, Boolean) |
Translates the column value of the given info object.
| |
TranslateColumn(IDataContainer, String, String, Int32, Boolean, Boolean) |
Translates the column value of the given container.
| |
TranslateColumns |
Translates all reference object columns.
| |
TranslateListColumn |
Translates the column value with list of IDs of the given info object.
|
Extension Methods
Name | Description | |
---|---|---|
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Fields
Name | Description | |
---|---|---|
AUTO_PARENTID |
Automatic parent ID.
| |
AUTO_SITEID |
Automatic site ID.
| |
AUTO_SITENAME |
Automatic site name (Get by SiteIDs from DB).
| |
mConnection |
Connection object used to access data.
| |
mIDConversion |
ID conversion table [objectType.ToLowerCSafe()] -> Hashtable [OldID -> [NewID, NewGroupID]]
| |
NO_SITE |
No site condition for registering records.
| |
TRANSLATION_TABLE |
Name of translation table
|
Properties
Name | Description | |
---|---|---|
IDConversion |
ID conversion table [objectType.ToLowerCSafe()] -> Hashtable [OldID -> NewID]
| |
TranslationTable |
Returns the translation table.
| |
UseDisplayNameAsCodeName |
If true, display name is used instead of the code name.
|
See Also