private void InitializeSchemaProperties() { ControlsTable = (ControlsTable)Tables["Controls"]; NodesTable = (NodesTable)Tables["Nodes"]; ControlToAllNodesRelation = (BcfRelation <TreeModelRelationOptions>)Relations["ControlToAllNodes"]; NodeToNextSiblingsRelation = (BcfRelation <TreeModelRelationOptions>)Relations["NodeToNextSiblings"]; NodeToChildNodesRelation = (BcfRelation <TreeModelRelationOptions>)Relations["NodeToChildNodes"]; ControlToSelectedNodesRelation = (BcfRelation <TreeModelRelationOptions>)Relations["ControlToSelectedNodes"]; ControlToRootNodesRelation = (BcfRelation <TreeModelRelationOptions>)Relations["ControlToRootNodes"]; ControlsTable.InitializeSchemaProperties(); NodesTable.InitializeSchemaProperties(); }
partial void Initialized() { ControlRow = ControlsTable.AddNewRow(); }