Skip to content

QRecord Class

Generic record entity for queryable databases, and base for strongly-typed entity subclasses.

MethodDescription
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.
PropertyDescription
FieldCountGets the number of fields in the record.
ItemGets or sets a record field.
ItemGets or sets a record field.

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

Not yet implemented.

public void Assign()

Deletes the record from the table if it exists.

public void Delete()

Used by subclasses to get a field as an integer.

protected int I(
int index
)
ParameterTypeDescription
indexintzero-based column index of the field

Inserts the record in the database.

public void Insert()

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.

Inserts the record into the table.

public void Insert(
bool temporary
)
ParameterTypeDescription
temporarybooltrue if the record is temporarily inserted, to be visible only as long as the database is open

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.

Not yet implemented.

public bool Merge()

Used by subclasses to get a field as a nullable integer.

protected System.Nullable<System.Int32> NI(
int index
)
ParameterTypeDescription
indexintzero-based column index of the field

Not yet implemented.

public void Refresh()

Dumps all record fields to a string.

public string ToString()

Not yet implemented.

public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> Validate()

Not yet implemented.

public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> ValidateDelete()

Not yet implemented.

public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> ValidateFields()

Not yet implemented.

public System.Collections.Generic.ICollection<WixToolset.Dtf.WindowsInstaller.ValidationErrorInfo> ValidateNew()

Gets the number of fields in the record.

public int FieldCount { get; set; }

Gets or sets a record field.

public string Item[
string field
] { get; set; }
ParameterTypeDescription
fieldstringcolumn name of the field

Setting a field value will automatically update the database.

Gets or sets a record field.

public string Item[
int index
] { get; set; }
ParameterTypeDescription
indexintzero-based column index of the field

Setting a field value will automatically update the database.