The QSqlRelation class stores information about an SQL foreign key.
More...
The QSqlRelation class stores information about an SQL foreign key.
QSqlRelation is a helper class for QSqlRelationalTableModel. See QSqlRelationalTableModel::setRelation() and QSqlRelationalTableModel::relation() for details.
See also QSqlRelationalTableModel, QSqlRelationalDelegate, and Relational Table Model Example.
QtSql.QSqlRelation.QSqlRelation |
( |
System.Type |
dummy | ) |
|
|
protected |
QtSql.QSqlRelation.QSqlRelation |
( |
| ) |
|
Constructs an invalid QSqlRelation object.
For such an object, the tableName(), indexColumn(), and displayColumn() functions return an empty string.
See also isValid().
Constructs an invalid QSqlRelation object.
For such an object, the tableName(), indexColumn(), and displayColumn() functions return an empty string.
See also isValid().
QtSql.QSqlRelation.QSqlRelation |
( |
string |
aTableName, |
|
|
string |
indexCol, |
|
|
string |
displayCol |
|
) |
| |
Constructs a QSqlRelation object, where tableName is the SQL table name to which a foreign key refers, indexColumn is the foreign key, and displayColumn is the field that should be presented to the user.
See also tableName(), indexColumn(), and displayColumn().
virtual void QtSql.QSqlRelation.CreateProxy |
( |
| ) |
|
|
virtual |
new string QtSql.QSqlRelation.DisplayColumn |
( |
| ) |
|
Returns the column from table tableName() that should be presented to the user instead of a foreign key.
new void QtSql.QSqlRelation.Dispose |
( |
| ) |
|
new string QtSql.QSqlRelation.IndexColumn |
( |
| ) |
|
Returns the index column from table tableName() to which a foreign key refers.
new bool QtSql.QSqlRelation.IsValid |
( |
| ) |
|
Returns true if the QSqlRelation object is valid; otherwise returns false.
new string QtSql.QSqlRelation.TableName |
( |
| ) |
|
Returns the name of the table to which a foreign key refers.
SmokeInvocation QtSql.QSqlRelation.interceptor |
|
protected |
virtual System.IntPtr QtSql.QSqlRelation.SmokeObject |
|
getset |