linkMany<TargetEntityT> method

_QueryBuilder<TargetEntityT> linkMany<TargetEntityT>(
  1. QueryRelationToMany<T, TargetEntityT> rel, [
  2. Condition<TargetEntityT>? qc
])
inherited

Based on a to-many relation rel of this entity, creates a link to another entity, for which conditions using the returned builder can be described.

final builder = personBox.query(Person_.name.equals('Elmo'));
builder.linkMany(Person_.addresses, Address_.street.equals('Sesame Street'));
final query = builder.build();

Implementation

_QueryBuilder<TargetEntityT> linkMany<TargetEntityT>(
        QueryRelationToMany<T, TargetEntityT> rel,
        [Condition<TargetEntityT>? qc]) =>
    _QueryBuilder<TargetEntityT>._link(
        this, qc, C.qb_link_standalone(_cBuilder, rel._model.id.id));