OrmRelation class
@param tableRelation => the table name of related model example: pessoas @param foreignKey => foreign key example: idPessoa @param localKey => local Key example: id @param relationType => different types of relationships one To One | one To Many | many To Many
Constructors
- OrmRelation(String tableRelation, String foreignKey, String localKey, OrmRelationType relationType, String relationName)
Properties
-
data
↔ Map<
String, dynamic> -
getter/setter pair
- foreignKey → String
-
foreign Key example: user_id
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- localKey → String
-
local Key example: id
final
- relationName → String
-
final
- relationType → OrmRelationType
-
different types of relationships one To One | one To Many | many To Many
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tableRelation → String
-
model name example: phone
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited