ComponentOne ADO.NET DataExtender
C1.C1DataExtender.2 Assembly / C1.C1DataExtender Namespace / ViewNode Class / ViewNode Constructor / ViewNode Constructor(DataTable,String)
Specify a DataTable that is represented by this ViewNode.
Defines an alias that is used to reference this ViewNode.

In This Topic
    ViewNode Constructor(DataTable,String)
    In This Topic
    Creates a new instance of the ViewNode class that represents a specified DataTable with a specified alias used to reference this node in the owner C1ViewModel.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal dataTable As System.Data.DataTable, _
       ByVal tableAlias As System.String _
    )
    public ViewNode( 
       System.Data.DataTable dataTable,
       System.string tableAlias
    )

    Parameters

    dataTable
    Specify a DataTable that is represented by this ViewNode.
    tableAlias
    Defines an alias that is used to reference this ViewNode.
    Remarks
    Constructor should be only used to create ViewNode that will be assigned to the C1ViewModel.RootNode property. Any other ViewNode of the C1ViewModel is created as a ChildNode object of ViewJoin automatically when ViewJoin is being created.
    See Also