ComponentOne ADO.NET DataExtender
C1.C1DataExtender.2 Assembly / C1.C1DataExtender Namespace / C1ViewRelation Class / C1ViewRelation Constructor / C1ViewRelation Constructor(C1DataView,C1DataView,DataRelation,String,String)
The parent C1DataView.
The child C1DataView.
The System.Data.DataRelation object that this C1ViewRelation is based on. If null is passed as the parameter value then base DataRelation is detected automatically.
The alias of the base DataTable which identify parent rows of relation.
The alias of the base DataTable which identify child rows of relation.

In This Topic
    C1ViewRelation Constructor(C1DataView,C1DataView,DataRelation,String,String)
    In This Topic
    Initializes a new instance of the C1ViewRelation.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal parentView As C1DataView, _
       ByVal childView As C1DataView, _
       ByVal dataSetRelation As System.Data.DataRelation, _
       ByVal parentTableAlias As System.String, _
       ByVal childTableAlias As System.String _
    )
    public C1ViewRelation( 
       C1DataView parentView,
       C1DataView childView,
       System.Data.DataRelation dataSetRelation,
       System.string parentTableAlias,
       System.string childTableAlias
    )

    Parameters

    parentView
    The parent C1DataView.
    childView
    The child C1DataView.
    dataSetRelation
    The System.Data.DataRelation object that this C1ViewRelation is based on. If null is passed as the parameter value then base DataRelation is detected automatically.
    parentTableAlias
    The alias of the base DataTable which identify parent rows of relation.
    childTableAlias
    The alias of the base DataTable which identify child rows of relation.
    Remarks
    After the C1ViewRelation has been created you should add it to the C1DataViewSet.Relations collection, until that relationship will not be activated.

    See the C1DataView Relations topic for details on the C1ViewRelation definition.

    See Also