EntityRelation class

Describes a relation of two tables in a relational database.

Examples

See:

Inheritance

Constructors

EntityRelation({required List<String> localPropNames, List<EntityJunction> junctions = const [], String? foreignTableName, required List<String> foreignPropNames})
EntityRelation.manyToMany({String originName = 'id', required String tableName, required String localPropName, required String foreignPropName, String destinationName = 'id'})
Constructs an instance of many-to-many relation.
factory
EntityRelation.oneToMany(String localPropName, String foreignPropName)
Constructs an instance of one-to-many relation.
factory
EntityRelation.oneToOne(String localPropName, String foreignPropName)
Constructs an instance of one-to-one relation.
factory

Properties

foreignPropNames List<String>
final
foreignTableName String?
final
hashCode int
The hash code for this object.
no setterinherited
junctions List<EntityJunction>
final
localPropNames List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getKind() EntityKind<EntityRelation>
Returns Kind of this entity.
override
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

Static Properties

kind EntityKind<EntityRelation>
final