• LinkType Property


    The following table describes the different settings for the LinkType property.

    Use Passive, Delayed, and Active when you join data sources that have a parent/child relationship, and InnerJoin, OuterJoin, ExistJoin, and NotExistJoin should be used when joining data sources to appear as one data source.

    Setting

    How the join is performed

    Passive                        

    Linked child data sources are not updated automatically. Updates of the child data source must be programmed on the active method of the master data source.

    Delayed

    A pause is inserted before linked child data sources are updated. This enables faster navigation in the parent data source because the records from child data sources are not updated immediately. For example, the user could be scrolling past several orders without immediately seeing each order lines.

    Active

    The child data source is updated immediately when a new record in the parent data source is selected. Continuous updates consume lots of resources.

    InnerJoin

    Selects records from the main table that have matching records in the joined table and vice versa.

    There is one record for each match. Records without related records in the other data source are eliminated from the result.

    OuterJoin

    Selects records from the main table whether they have matching records in the joined table.

    ExistJoin

    Selects a record from the main table for each matching record in the joined table.

    The differences between InnerJoin and ExistJoin are as follows:

    • When the join type is ExistJoin, the search ends after the first match has been found.

    • When the join type is InnerJoin, all matching records are searched for.

    NotExistJoin

    Select records from the main table that do not have a match in the joined table.


    Reference Andy books, such as below images

    01

    01

    02

    02

    03

    03

  • 相关阅读:
    EF中連表查詢的應用方式
    排序刷新及其分頁
    SpringMVC与前台的json数据交互
    最详细的springmvc-mybatis教程
    数据库主从复制
    display:inline、block、inline-block的区别
    Yii框架中有关于layout的说明
    创建yii的第一个应用
    学习bootstrap的总结文章
    数据库事物隔离级别通俗理解
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1973410.html
Copyright © 2020-2023  润新知