ComponentOne ADO.NET DataExtender
C1.C1DataExtender.2 Assembly / C1.C1DataExtender Namespace / C1ViewRelation Class / C1ViewRelation Constructor / C1ViewRelation Constructor(C1DataView,C1DataView,String,String,String)

In This Topic
    C1ViewRelation Constructor(C1DataView,C1DataView,String,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 dataSetRelationName As System.String, _
       ByVal parentTableAlias As System.String, _
       ByVal childTableAlias As System.String _
    )
    public C1ViewRelation( 
       C1DataView parentView,
       C1DataView childView,
       System.string dataSetRelationName,
       System.string parentTableAlias,
       System.string childTableAlias
    )

    Parameters

    parentView
    childView
    dataSetRelationName
    parentTableAlias
    childTableAlias
    Remarks
    After the C1ViewRelation has been created you should at least add it to the C1DataViewSet.Relations collection and specify parent and child C1DataView objects connecting by this C1ViewRelation via the ParentView and ChildView properties, until that relationship will not be activated.

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

    See Also