QRecord Class
Generic record entity for queryable databases, and base for strongly-typed entity subclasses.
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
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
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.2+aa65968c419420d32e3e1b647aea0082f5ca5b78
Assign() Method
Not yet implemented.
Declaration
public void Assign()
Delete() Method
Deletes the record from the table if it exists.
Declaration
public void Delete()
I(index) Method
Used by subclasses to get a field as an integer.
Declaration
protected int I(
int index
)
Parameters
Parameter | Type | Description |
---|---|---|
index | int | zero-based column index of the field |
Insert() Method
Inserts the record in the database.
Declaration
public void Insert()
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
Inserts the record into the table.
Declaration
public void Insert(
bool temporary
)
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
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
Not yet implemented.
Declaration
public bool Merge()
NI(index) Method
Used by subclasses to get a field as a nullable integer.
Declaration
protected System.Nullable<System.Int32> NI(
int index
)
Parameters
Parameter | Type | Description |
---|---|---|
index | int | zero-based column index of the field |
Refresh() Method
Not yet implemented.
Declaration
public void Refresh()
ToString() Method
Dumps all record fields to a string.
Declaration
public string ToString()
Validate() Method
Not yet implemented.
Declaration
public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> Validate()
ValidateDelete() Method
Not yet implemented.
Declaration
public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> ValidateDelete()
ValidateFields() Method
Not yet implemented.
Declaration
public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> ValidateFields()
ValidateNew() Method
Not yet implemented.
Declaration
public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> ValidateNew()
FieldCount Property
Gets the number of fields in the record.
Declaration
public int FieldCount { get; set; }
Item Property
Gets or sets a record field.
Declaration
public string Item[
string field
] { get; set; }
Parameters
Parameter | Type | Description |
---|---|---|
field | string | column name of the field |
Remarks
Setting a field value will automatically update the database.
Item Property
Gets or sets a record field.
Declaration
public string Item[
int index
] { get; set; }
Parameters
Parameter | Type | Description |
---|---|---|
index | int | zero-based column index of the field |
Remarks
Setting a field value will automatically update the database.