Predicate MembersEasyQuery ASP.NET API Reference

The Predicate type exposes the following members.
Constructors

  NameDescription
Public methodPredicate
Initializes a new instance of the Predicate class.
Back to Top
Methods

  NameDescription
Public methodAddPredicate
Creates and adds a new predicate into current
Public methodAddSimpleCondition(String, String,  String )
Adds a simple condition by attribute ID, operator ID and a list of values
Public methodAddSimpleCondition(EntityAttr, Operator,  Expression )
Adds a simple condition by attribute, operator and a list of expressions
Public methodBeginUpdate
Starts the update process. OnConditionsChanged event of corresponding Query object is not raised while condition is in update state
(Overrides Condition BeginUpdate .)
Public methodChanged
Raises ConditionsChange event in parent object
(Inherited from Condition.)
Protected methodCheckDataModel
Checks DataModel property. Generates an exception if it is null.
(Inherited from Condition.)
Protected methodCheckIfEnabled
This procedure is called when Enable state in one of the child conditions was changed.
Protected methodCheckQuery
Checks Query property. Generates an exception if it is null.
(Inherited from Condition.)
Public methodContainsGhosts
Determines whether this predicate contains a condition with a "ghost" attribute.
Public methodEndUpdate
Ends the update process. Raises ConditionsChange event if some modification(s) was(were) made during update process.
(Overrides Condition EndUpdate .)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodFindCondByAttr
Finds the condition the by entity attribute set in the left part of this condition.
Protected methodGetBaseAttr
Gets the base entity attribute for this condition.
(Inherited from Condition.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Protected methodGetHaving
Gets a value indicating whether this condition must be placed into HAVING clause in result SQL.
(Overrides Condition GetHaving .)
Public methodGetOffspringCount
Gets the number of all offspings of the predicate
Protected methodGetPredicateHeader
Gets the predicate header text.
Public methodGetText 
Returns text representation of condition with default formats (QueryTextFormats.Default)
(Inherited from Condition.)
Public methodGetText(QueryTextFormats)
Returns text representation of condition
(Inherited from Condition.)
Public methodGetText(QueryTextFormats, String, String)
Returns text representation of condition
(Overrides Condition GetText(QueryTextFormats, String, String).)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodGetUsedEntities
Gets the list of entities that are used in conditions of this predicate.
(Overrides Condition GetUsedEntities .)
Public methodLoadFromDictionary
Loads condition from IDictionary. Used during loading query from JSON
(Overrides Condition LoadFromDictionary(IDictionary String, Object ).)
Public methodLoadFromXmlReader
Loads Predicate properties from XML reader.
(Overrides Condition LoadFromXmlReader(XmlReader).)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodMoveDown
Moves the condition to one position down (taking into account the level of other conditions).
(Inherited from Condition.)
Public methodMoveUp
Moves the condition to one position up (taking into account the level of other conditions).
(Inherited from Condition.)
Public methodRefresh
Refreshes this instance.
(Inherited from Condition.)
Public methodSaveToXmlWriter
Saves root condition group object to XML writer, if the predicate is root. Otherwise calls inherited method.
(Overrides Condition SaveToXmlWriter(XmlWriter).)
Protected methodSetEnabled
Sets the Enabled property.
(Overrides Condition SetEnabled(Boolean).)
Protected methodSetQuery
Sets the query object.
(Overrides Condition SetQuery(Query).)
Protected methodSetReadOnly
Sets the ReadOnly property.
(Overrides Condition SetReadOnly(Boolean).)
Public methodShiftLevel
Shifts the row level (taking into account the level of other rows)
(Inherited from Condition.)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Protected methodWriteContent
Writes the content of condition to XmlWriter object.
(Overrides Condition WriteContent(XmlWriter).)
Protected methodWriteSubNodesToXml
Writes the sub codnitions to XML.
Back to Top
Properties

  NameDescription
Public propertyBaseAttr
Gets the base entity attribute for this condition.
(Inherited from Condition.)
Public propertyConditions
Gets the conditions.
Public propertyEnabled
Gets or sets a value indicating whether this Condition is enabled.
(Inherited from Condition.)
Public propertyFullNum
Gets the full number of condition.
(Inherited from Condition.)
Public propertyID
Gets or sets the ID.
(Inherited from Condition.)
Public propertyIndex
Gets the index in the parent's list.
(Inherited from Condition.)
Public propertyIsEmpty
Gets a value indicating whether this predicate is empty (zero conditions).
Public propertyIsHaving
Gets a value indicating whether this condition must be placed into HAVING clause in result SQL.
(Inherited from Condition.)
Public propertyIsRoot
Gets a value indicating whether this predicate is the root predicate in query.
Protected propertyIsSilent
Gets a value indicating whether this query is silent - so no event will be raised on change.
(Inherited from Condition.)
Public propertyLevel
Gets the level of this condition in query.
(Inherited from Condition.)
Public propertyLinking
Gets or sets the linking type.
Public propertyLinkingStr
Gets or sets the text representation of linking type.
Public propertyModel
Gets the model.
(Inherited from Condition.)
Public propertyParent
Gets the parent Predicate which this conditions is included to.
(Inherited from Condition.)
Public propertyQuery
Gets the query which this condition belongs to.
(Inherited from Condition.)
Public propertyReadOnly
Gets or sets a value indicating whether this Condition is read-only.
(Inherited from Condition.)
Public propertyStatic memberSTypeName
Gets the name of the S class.
Public propertyTypeName
Gets the name of the condition type. The same as STypeName but works for one particular instance of SimpleCondition class.
(Overrides Condition TypeName.)
Public propertyUseDefaultValues
Gets a value indicating whether condition expressions should get default values after creation
(Inherited from Condition.)
Back to Top
See Also