DynamicRecord Class |
[This is preliminary documentation and is subject to change.]
Namespace: CSC.SC.TOPICA4.DynamicData
public class DynamicRecord
The DynamicRecord type exposes the following members.
Name | Description | |
---|---|---|
DynamicRecord(DataRow) |
Construct a DynamicRecord from a DataRow only.
ONLY to be used for data that is NOT stored in table in Data Dictionary.
| |
DynamicRecord(DataDictionaryTable) |
Construct a DynamicRecord with field/column structure as specifed by DataDictionary table.
The constructed record is empty, e.g. no fields have values.
| |
DynamicRecord(DataDictionaryTable, Boolean) |
Construct a DynamicRecord with field/column structure as specifed by DataDictionary table.
The constructed record is empty, e.g. no fields have values.
| |
DynamicRecord(DataDictionaryTable, DataRow) |
Construct a DynamicRecord from a DataRow
| |
DynamicRecord(Database, DataDictionaryTable, Int32) |
Construct a DynamicRecord with field/column structure as specifed by DataDictionary table.
The constructed record is read from database, e.g. fields have values corresponding to the database record/row.
|
Name | Description | |
---|---|---|
AsDataTable |
Construct a DataTable, with 2 columns (FieldName and FieldValue)
and same number of rows as number of fields in this record
| |
AsString |
String representation for debugging etc.
| |
ContainsField |
Check if record contains speficifed field name
| |
DBDelete |
Delete from database
| |
DBGetAncestorRecords |
Return all ancestor records
| |
DBGetParentRecord |
Return "parent record" (each record is supposed to be "owned" by one an only one record).
Root record (e.g. a record belonging to the root table) will return null.
| |
DBGetParentRecordIncludePatient |
Return "parent record" (each record is supposed to be "owned" by one an only one record)
| |
DBGetRoot |
Return "root" record
| |
DBGetStructureType |
Get ancestor record that has matching structureType
| |
DBGetSubrecordCount |
Get number of subrecords from a specific table
| |
DBGetSubrecords(Database, DataDictionary) |
Read subrecords from database - read from all "child" tables according to DataDictionary
| |
DBGetSubrecords(Database, DataDictionaryTable) |
Read subrecords from database - read from one specified table
| |
DBGetSubrecords(Database, DataDictionaryTable, String) |
Read subrecords from database - read from one specified table
| |
DBGetSubrecords(Database, DataDictionary, String, Boolean) |
Read subrecords from database - read from all "child" tables according to DataDictionary.
Sort by speficified fields - obviously this field is supposed to exist in all tables.
| |
DBGetSubrecords(Database, DataDictionaryTable, String, Boolean) |
Read subrecords from database - read from one specified table and sort by specified field
| |
DBInsert |
Insert into database
| |
DBLoad |
Load from DataRow
| |
DBRead |
Read from database by id
| |
DBUpdate |
Update in database
| |
DebugPrintLong |
Print to debug listener - long version
| |
DebugPrintLong(String) |
Print to debug listener - long version
| |
DebugPrintShort |
Print to debug listener - short version
| |
DebugPrintShort(String) |
Print to debug listener - short version
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsNull |
Check if field fieldName is null (actually, DBNull)
| |
LinkAllParentRecords |
Establish relations to all ancestors records
| |
LinkParentRecord |
Establish relation to parent record
| |
LinkPatient(Int32) |
Link this to patient given by patientId | |
LinkPatient(DynamicRecord) |
Link dynamicRecord to patinet given by this
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PrepareSubRecordsUpdate |
This method returns an empty DynamicRecordCollection for a given dataDictionaryTable. When this DynamicRecord is
saved the database will be updated to reflect that collection for the given dataDictionaryTable.
| |
ToString |
String representation for debugging etc.
(Overrides ObjectToString.) | |
WriteLong(TextWriter, String) |
Write to TextWriter - long version
| |
WriteLong(TextWriter, String, Database, DataDictionary) |
Write to TextWriter - long version
| |
WriteShort(TextWriter, String) |
Write to TextWriter - short version
| |
WriteShort(TextWriter, String, Database, DataDictionary) |
Write to TextWriter - short version
|
Name | Description | |
---|---|---|
Caption |
Display name
| |
DataDictionaryTable |
Reference to DataDictionary table
| |
DataRow |
Field values
| |
HasID |
Does this record have an ID? No ID means that it has not been read from database.
| |
ID |
Unique ID read from database.
NB: will FAIL if ID is not set (typically because record has not been read from database)!
| |
TableName |
Table name
|