QRecord Class
Generic record entity for queryable databases, and base for strongly-typed entity subclasses.
Methods
Section titled “Methods”| Method | Description |
|---|---|
| Assign() | Not yet implemented. |
| Delete() | Deletes the record from the table if it exists. |
| I(index) | Used by subclasses to get a field as an integer. |
| Insert() | Inserts the record in the database. |
| Insert(temporary) | Inserts the record into the table. |
| Merge() | Not yet implemented. |
| NI(index) | Used by subclasses to get a field as a nullable integer. |
| Refresh() | Not yet implemented. |
| ToString() | Dumps all record fields to a string. |
| Validate() | Not yet implemented. |
| ValidateDelete() | Not yet implemented. |
| ValidateFields() | Not yet implemented. |
| ValidateNew() | Not yet implemented. |
Properties
Section titled “Properties”| Property | Description |
|---|---|
| FieldCount | Gets the number of fields in the record. |
| Item | Gets or sets a record field. |
| Item | Gets or sets a record field. |
Remarks
Section titled “Remarks”Several predefined specialized subclasses are provided for common standard tables. Subclasses for additional standard tables or custom tables are not necessary, but they are easy to create and make the coding experience much nicer.When creating subclasses, the following attributes may be useful: «see T:WixToolset.Dtf.WindowsInstaller.Linq.DatabaseTableAttribute» , «see T:WixToolset.Dtf.WindowsInstaller.Linq.DatabaseColumnAttribute»
WixToolset.Dtf.WindowsInstaller.Linq.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8
Assign() Method
Section titled “Assign() Method”Not yet implemented.
Declaration
Section titled “Declaration”public void Assign()Delete() Method
Section titled “Delete() Method”Deletes the record from the table if it exists.
Declaration
Section titled “Declaration”public void Delete()I(index) Method
Section titled “I(index) Method”Used by subclasses to get a field as an integer.
Declaration
Section titled “Declaration”protected int I( int index)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| index | int | zero-based column index of the field |
Insert() Method
Section titled “Insert() Method”Inserts the record in the database.
Declaration
Section titled “Declaration”public void Insert()Remarks
Section titled “Remarks”The record (primary keys) may not already exist in the table.Use «see M:WixToolset.Dtf.WindowsInstaller.Linq.QTable`1.NewRecord» to get a new record. Prmary keys and all required fields must be filled in before insertion.
Insert(temporary) Method
Section titled “Insert(temporary) Method”Inserts the record into the table.
Declaration
Section titled “Declaration”public void Insert( bool temporary)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| temporary | bool | true if the record is temporarily inserted, to be visible only as long as the database is open |
Remarks
Section titled “Remarks”The record (primary keys) may not already exist in the table.Use «see M:WixToolset.Dtf.WindowsInstaller.Linq.QTable`1.NewRecord» to get a new record. Prmary keys and all required fields must be filled in before insertion.
Merge() Method
Section titled “Merge() Method”Not yet implemented.
Declaration
Section titled “Declaration”public bool Merge()NI(index) Method
Section titled “NI(index) Method”Used by subclasses to get a field as a nullable integer.
Declaration
Section titled “Declaration”protected System.Nullable<System.Int32> NI( int index)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| index | int | zero-based column index of the field |
Refresh() Method
Section titled “Refresh() Method”Not yet implemented.
Declaration
Section titled “Declaration”public void Refresh()ToString() Method
Section titled “ToString() Method”Dumps all record fields to a string.
Declaration
Section titled “Declaration”public string ToString()Validate() Method
Section titled “Validate() Method”Not yet implemented.
Declaration
Section titled “Declaration”public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> Validate()ValidateDelete() Method
Section titled “ValidateDelete() Method”Not yet implemented.
Declaration
Section titled “Declaration”public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> ValidateDelete()ValidateFields() Method
Section titled “ValidateFields() Method”Not yet implemented.
Declaration
Section titled “Declaration”public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> ValidateFields()ValidateNew() Method
Section titled “ValidateNew() Method”Not yet implemented.
Declaration
Section titled “Declaration”public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> ValidateNew()FieldCount Property
Section titled “FieldCount Property”Gets the number of fields in the record.
Declaration
Section titled “Declaration”public int FieldCount { get; set; }Item Property
Section titled “Item Property”Gets or sets a record field.
Declaration
Section titled “Declaration”public string Item[ string field] { get; set; }Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| field | string | column name of the field |
Remarks
Section titled “Remarks”Setting a field value will automatically update the database.
Item Property
Section titled “Item Property”Gets or sets a record field.
Declaration
Section titled “Declaration”public string Item[ int index] { get; set; }Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| index | int | zero-based column index of the field |
Remarks
Section titled “Remarks”Setting a field value will automatically update the database.