SqfEntityFieldRelationship constructor
const
SqfEntityFieldRelationship({
- SqfEntityTable? parentTable,
- DeleteRule? deleteRule,
- String? fieldName,
- bool? isPrimaryKeyField,
- dynamic defaultValue,
- dynamic minValue,
- dynamic maxValue,
- String? formLabelText,
- String? formDropDownTextField,
- RelationType? relationType,
- String? manyToManyTableName,
- bool? isNotNull,
- bool? isUnique,
- bool? isIndex,
- int? isIndexGroup,
- String? checkCondition,
- Collate? collate,
Create a field which has a relation with another table. So you can see all related children rows or a parent row Simple virtual field definition must be below:
SqfEntityFieldRelationship(
parentTable: tableCategory,
deleteRule: DeleteRule.CASCADE,
defaultValue: 1,
),
Implementation
const SqfEntityFieldRelationship({
this.parentTable,
this.deleteRule,
this.fieldName,
this.isPrimaryKeyField,
this.defaultValue,
this.minValue,
this.maxValue,
this.formLabelText,
this.formDropDownTextField,
this.relationType,
this.manyToManyTableName,
this.isNotNull,
this.isUnique,
this.isIndex,
this.isIndexGroup,
this.checkCondition,
this.collate,
});