Query MembersEasyQuery WinForms API Reference

The Query type exposes the following members.
Constructors

  NameDescription
Public methodQuery 
Initializes a new instance of the Query class.
Public methodQuery(Query)
Initializes a new instance of the Query class.
Protected methodQuery(SerializationInfo, StreamingContext)
Initializes a new instance of the Query class.
Back to Top
Methods

  NameDescription
Protected methodAddAttributeParams
Adds the parameters associated with some entity attribute into the list of query parameters (see Params.
Public methodAddPredicate
Creates new predicate (condition group) and adds it into the query.
Public methodAddSimpleCondition
Creates new simple condition and adds it into the query.
Public methodCheckDataModel
Checks the data model object. Generates an exception if Model property has null value.
Public methodClear
Clears the query conditions and result columns.
Protected methodCoreClear
Clears all query content. Can be overriden in derived classes.
Protected methodCoreRefreshParams
Refreshes the list of query parameters by parameters associated with attributes used in query columns .
Public methodCreateAggrFuncExpr
Creates the aggregate function expression.
Public methodCreateColumn 
Creates a column.
Public methodCreateColumn(EntityAttr)
Creates a column by EntityAttr object.
Public methodCreateEntityAttrExpr
Creates the entity attribute expression.
Public methodOnlineCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from OnlineMarshalByRefObject.)
Protected methodCreateOptionsObject
Creates the Options object.
Public methodCreateParentEntityAttrExpr
Creates the parent entity attribute expression.
Public methodCreatePredicate 
Creates a new predicate.
Public methodCreatePredicate(DataModel)Obsolete.
Creates the predicate.
Public methodCreateRootPredicate
Creates the root predicate.
Public methodCreateSilentPredicate
Creates a new "silent" predicate. Here "silent" means neither this predicate nor its conditions will raise ConditionsChanged event in associated query
Public methodCreateSimpleCondition 
Creates the simple condition.
Public methodCreateSimpleCondition(DataModel)Obsolete.
Creates the simple condition.
Public methodCreateSimpleCondition(String, String,  String )
Creates a simple condition with indicated attribute, operator and values.
Public methodCreateSimpleCondition(EntityAttr, Operator,  Expression )
Creates a simple condition with indicated attribute, operator and values.
Public methodCreateSubQuery
Creates the subquery.
Protected methodDeserialize
Deserializes the query.
Public methodOnlineDispose 
Releases all resources used by the OnlineComponent.
(Inherited from OnlineComponent.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the OnlineComponent and optionally releases the managed resources.
(Overrides OnlineComponent Dispose(Boolean).)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Releases unmanaged resources and performs other cleanup operations before the OnlineComponent is reclaimed by garbage collection.
(Inherited from OnlineComponent.)
Public methodGetConditionsText
Returns human-readable text that represents current query conditions
Protected methodGetFormats
Gets query formats (an instance of QueryFormats class).
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from OnlineMarshalByRefObject.)
Public methodGetOneValueForAttr
Gets the one value set in some query condition for indicated entity attribute
Public methodGetParentQueryRootEntity
Gets the entities from parent query.
Protected methodOnlineGetService
Returns an object that represents a service provided by the OnlineComponent or by its OnlineContainer.
(Inherited from OnlineComponent.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodOnlineInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from OnlineMarshalByRefObject.)
Public methodLoadFromDictionary(IDictionary String, Object )
Loads query from some OnlineIDictionary object. Useful for JSON serialization
Public methodLoadFromDictionary(IDictionary String, Object , Query RWOptions)
Loads query from some OnlineIDictionary object. Useful for JSON serialization
Public methodLoadFromFile(String)
Loads query from file.
Public methodLoadFromFile(String, Query RWOptions)
Loads query from file.
Public methodLoadFromStream(Stream)
Loads query from stream.
Public methodLoadFromStream(Stream, Query RWOptions)
Loads query from stream.
Public methodLoadFromString(String)
Loads query from string.
Public methodLoadFromString(String, Query RWOptions)
Loads query from string.
Public methodLoadFromXmlReader(XmlReader)
Loads query from XML reader.
Public methodLoadFromXmlReader(XmlReader, Query RWOptions)
Loads query from XML reader.
Protected methodLoadNode
Loads the root node.
Protected methodOnlineMemberwiseClone 
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone(Boolean)
Creates a shallow copy of the current OnlineMarshalByRefObject object.
(Inherited from OnlineMarshalByRefObject.)
Public methodNewModel
Creates new model object of appropriate type.
Protected methodOnColumnsChanged
Raises the ColumnsChanged event.
Protected methodOnColumnsChanging
Raises the [E:ColumnsChanging] event.
Protected methodOnConditionsChanged
Raises the ConditionsChanged event.
Protected methodOnSortOrderChanged
Raises the [E:SortOrderChanged] event.
Protected methodOnSubQueryConditionsChanged
Raises the [E:SubQueryConditionsChanged] event.
Public methodRefreshParams
Refreshes the list of query parameters by parameters associated with attributes used in query columns .
Protected methodResyncSortingList
Resynchronizes the sorting list of columns correspondingly to their order.
Protected methodSaveNodes
Saves the root nodes.
Public methodSaveToDictionary
Saves query into some OnlineIDictionary object. Useful for JSON serialization
Public methodSaveToFile(String)
Saves query to XML file.
Public methodSaveToFile(String, Query RWOptions)
Saves query to XML file.
Public methodSaveToStream(Stream)
Saves query XML to stream.
Public methodSaveToStream(Stream, Query RWOptions)
Saves query XML to stream.
Public methodSaveToString 
Saves query to string containing the XML.
Public methodSaveToString(Query RWOptions)
Saves query to string containing the XML.
Public methodSaveToXmlWriter
Saves query to XML using XML writer.
Protected methodSerialize
Serializes the specified information.
Public methodOnlineToString
Returns a OnlineString containing the name of the OnlineComponent, if any. This method should not be overridden.
(Inherited from OnlineComponent.)
Public methodValidate
Validates this query instance. This method throws an exception if query has "ghost" attributes
Back to Top
Fields

  NameDescription
Protected fieldcolumns
List of all query columns
Protected fieldfilePath
Query file location if query is loaded from file
Protected fieldjustSortedColumns
List of just sorted coumns
Protected fieldqueryDescription
User-defined query description
Protected fieldqueryName
User-defined name of the query
Protected fieldroot
Root predicate of the query
Protected fieldserializationQueryXml
Serialized query
Protected fieldsortedColumns
List of sorted columns
Back to Top
Properties

  NameDescription
Protected propertyOnlineCanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from OnlineComponent.)
Public propertyColumns
Gets the columns.
Public propertyOnlineContainer
Gets the OnlineIContainer that contains the OnlineComponent.
(Inherited from OnlineComponent.)
Protected propertyOnlineDesignMode
Gets a value that indicates whether the OnlineComponent is currently in design mode.
(Inherited from OnlineComponent.)
Protected propertyOnlineEvents
Gets the list of event handlers that are attached to this OnlineComponent.
(Inherited from OnlineComponent.)
Public propertyExtraColumns
Gets or sets the extra columns.
Public propertyExtraConditions
Gets the list of extra conditions for this query. These conditions are not visible to end-users but included into result SQL statement as all others (defined in Root predicate).
Public propertyFilePath
Gets the query file path. It is automatically assigned when you use LoadFromFile method.
Public propertyFormats
Gets or sets the formats
Public propertyID
Gets or sets the ID of this query.
Public propertyIsEmpty
Gets a value indicating whether this query is empty (no columns and no conditions are defined).
Public propertyJustSortedColumns
Gets the list of "just sorted" columns (the columns which will occur only in ORDER BY clause)
Public propertyModel
Gets or sets the data model used in this query.
Public propertyOptions
Gets the options that allows to alter the result query.
Public propertyParams
Gets the list of parameters used in generated SQL statement.
Public propertyParent
Gets the parent query.
Public propertyQueryDescription
Gets or sets the query description.
Public propertyQueryName
Gets or sets the name of the query.
Public propertyRoot
Gets the root predicate of the query.
Public propertyOnlineSite
Gets or sets the OnlineISite of the OnlineComponent.
(Inherited from OnlineComponent.)
Public propertySortedColumns
Gets the list of sorted columns.
Public propertyStoreModelPath
Gets or sets a value indicating whether this Query object should store the path to corresponding data model and restore it during query loading.
Public propertyStoreOptions
Gets or sets a value indicating whether this Query object should store the options and restore them during query loading.
Public propertySyncColSortOrder
Gets or sets a value indicating whether the order of columns must be synchronized with their sorting order.
Public propertyTexts
Gets an instance of TextStorage object which holds all text resources used in this assembly
Back to Top
Events

  NameDescription
Public eventColumnsChanged
This event is raised when the list of query result columns or a particular column was changed. For example some column was added or some was deleted.
Public eventColumnsChanging
This event is raised before the list of query columns or a particular column is going to be changed. For example some column will be added or deleted.
Public eventConditionsChanged
This event is raised when list of query conditions or a particular condition was changed. For example some condition was added or some - was deleted.
Public eventOnlineDisposed
Occurs when the component is disposed by a call to the OnlineDispose  method.
(Inherited from OnlineComponent.)
Public eventModelChanged
Occurs after the model has been changed.
Public eventSortOrderChanged
Occurs when the list of sorted columns was changed.
Public eventSubQueryConditionsChanged
This event is raised when list of subquery conditions or a particular condition was changed. For example some condition was added or some - was deleted.
Back to Top
See Also