A panel that contains and displays model’s structure of entities and attributes.
public class Korzh .EasyQuery.WinForms.EntitiesPanel
Package: Korzh.EasyQuery.WinForms
(targets: net461
, net5.0-windows7.0
, netcoreapp3.1
)
Assembly: Korzh.EasyQuery.WinForms.dll
Name Type Description FilterBehavior FilterOptions Gets or sets a value indicating how to define does the entity or attribute name pass the filter - if it starts with the filter string or if it contains that string. ImageAddColumns Image
Gets or sets the image for “Add Columns” button. ImageAddConditions Image
Gets or sets the image for “Add Conditions” button. ImageSelectAll Image
Gets or sets the image for “Select All” button. ImageSelectNone Image
Gets or sets the image for “Select None” button. Model DataModel Gets or sets the Korzh.EasyQuery.DataModel object . Query Query Gets or sets the Korzh.EasyQuery.Query object. ShowAttributes ShowAttrOptions Gets or sets a value indicating which attributes should be shown in the control. ShowClearSelectionButton bool
Gets or sets a value indicating whether to show “Clear selection” button. ShowColumnsButton bool
Gets or sets a value indicating whether to show “Add columns” button. ShowConditionsButton bool
Gets or sets a value indicating whether to show “Add conditions” button. ShowFilter bool
Gets or sets a value indicating whether to show a filter panel. ShowSelectAllButton bool
Gets or sets a value indicating whether to show “Select all” button. Texts TextStorage Gets an instance of Korzh.Utils.TextStorage object object which holds all text resources used in Korzh.EasyQuery.WinForms.QueryPanel object TreeBorderStyle BorderStyle
Gets or sets a value indicating which attributes should be shown in the control.
Name Type Description NodeAdding NodeAddingEventHandler
Occurs when the new attribute node is to be added to the tree.
Name Type Description AddSelectedAttributesToColumns() void
Adds the selected attributes to the Columns’ list of associated Query. AddSelectedAttributesToConditions() void
Adds the selected attributes to the root predicate of associated Query. CheckDataModel() void
Checks the Korzh.EasyQuery.DataModel object. Generates an exception if Korzh.EasyQuery.WinForms.EntitiesPanel.Model property has null value. CheckQuery() void
Checks the query Korzh.EasyQuery.Query . Generates an exception if Query property has null value. ClearFilter() void
Clears current filter (if any). ClearSelection() void
Deselect all items in the Entities tree. CoreClearSelection() void
Clear selection (core virtual method). CoreFillEntityTree(TreeNodeCollection
items, Entity parentEntity, bool
keepSelection) void
Fills the list (tree) of entities and their attributes. CoreSelectAll() void
Selects all items (core virtual method). DoTreeAfterCheck(object
sender, TreeViewEventArgs
e) void
Performs necessary actions on some node checkbox check/uncheck. GetSelectedAttrs(MetaEntityAttrList attrList) int
Fills the attrList param with the attributes wich nodes are selected in the tree. OnNodeAdding(NodeAddingEventArgs e) void
Raises the Korzh.EasyQuery.WinForms.EntitiesPanel.NodeAdding event. OnSizeChanged(EventArgs
e) void
Overrides System.Windows.Forms.Control.OnSizeChanged(System.EventArgs)
. UpdateModelInfo() void
Updates all information based on data model information (such as list of entities).