Click or drag to resize

FieldCompareSetPredicate Class

Implementation of a Field compare-operator Set expression, using the following format: IEntityField(Core) ComparisonOperator (Subquery)
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClassesPredicate
    SD.LLBLGen.Pro.ORMSupportClassesFieldCompareSetPredicate

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
[SerializableAttribute]
public class FieldCompareSetPredicate : Predicate

The FieldCompareSetPredicate type exposes the following members.

Constructors
  NameDescription
Public methodFieldCompareSetPredicate
CTor
Public methodFieldCompareSetPredicate(IEntityField, IEntityField, SetOperator, IPredicate)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityField, IEntityField, SetOperator, IPredicate, IRelationCollection)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityField, IEntityField, SetOperator, IPredicate, Boolean)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityField, IEntityField, SetOperator, IPredicate, String)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityField, IEntityField, SetOperator, IPredicate, IRelationCollection, Boolean)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityField, IEntityField, SetOperator, IPredicate, IRelationCollection, String)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityField, IEntityField, SetOperator, IPredicate, String, Boolean)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityFieldCore, IFieldPersistenceInfo, IEntityFieldCore, IFieldPersistenceInfo, SetOperator, IPredicate)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityField, IEntityField, SetOperator, IPredicate, IRelationCollection, String, Boolean)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityFieldCore, IFieldPersistenceInfo, IEntityFieldCore, IFieldPersistenceInfo, SetOperator, IPredicate, IRelationCollection)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityFieldCore, IFieldPersistenceInfo, IEntityFieldCore, IFieldPersistenceInfo, SetOperator, IPredicate, Boolean)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityFieldCore, IFieldPersistenceInfo, IEntityFieldCore, IFieldPersistenceInfo, SetOperator, IPredicate, String)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityField, IEntityField, SetOperator, IPredicate, IRelationCollection, String, Int64, ISortExpression)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityFieldCore, IFieldPersistenceInfo, IEntityFieldCore, IFieldPersistenceInfo, SetOperator, IPredicate, IRelationCollection, Boolean)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityFieldCore, IFieldPersistenceInfo, IEntityFieldCore, IFieldPersistenceInfo, SetOperator, IPredicate, IRelationCollection, String)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityFieldCore, IFieldPersistenceInfo, IEntityFieldCore, IFieldPersistenceInfo, SetOperator, IPredicate, String, Boolean)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityField, IEntityField, SetOperator, IPredicate, IRelationCollection, String, Int64, ISortExpression, Boolean)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityFieldCore, IFieldPersistenceInfo, IEntityFieldCore, IFieldPersistenceInfo, SetOperator, IPredicate, IRelationCollection, String, Boolean)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityField, IEntityField, SetOperator, IPredicate, IRelationCollection, String, Int64, ISortExpression, Boolean, IGroupByCollection)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityFieldCore, IFieldPersistenceInfo, IEntityFieldCore, IFieldPersistenceInfo, SetOperator, IPredicate, IRelationCollection, String, Int64, ISortExpression)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityFieldCore, IFieldPersistenceInfo, IEntityFieldCore, IFieldPersistenceInfo, SetOperator, IPredicate, IRelationCollection, String, Int64, ISortExpression, Boolean)
Creates a new FieldCompareSetPredicate instance.
Public methodFieldCompareSetPredicate(IEntityFieldCore, IFieldPersistenceInfo, IEntityFieldCore, IFieldPersistenceInfo, SetOperator, IPredicate, IRelationCollection, String, Int64, ISortExpression, Boolean, IGroupByCollection)
Creates a new FieldCompareSetPredicate instance.
Top
Properties
  NameDescription
Public propertyAllowDuplicatesInSubQuery
Gets or sets a value indicating whether duplicates are allowed (true, default) in the subquery or not (false). On most databases this has no effect, but on e.g. Oracle it can be beneficial to specify false (which emits DISTINCT) to force the optimizer to use an index, if applicable.
Public propertyDatabaseSpecificCreator
Object which will be used to create valid parameter objects, field names, including prefix/postfix characters, and conversion routines, and field names, including prefix/postfix characters. Uses the strategy pattern so the generic code can work with more than one target database.
(Inherited from Predicate.)
Public propertyField
Field used in the comparison expression (SelfServicing).
Public propertyFieldCore
Field used in the comparison expression (IEntityFieldCore).
Public propertyGroupByClause
Gets / sets the groupByClause for this FieldCompareSetPredicate instance
Public propertyInstanceType
The PredicateType of this instance. Used to determine the instance nature without a lot of casting.
(Inherited from Predicate.)
Public propertyMaxNumberOfItemsToReturn
Gets / sets maxNumberOfItemsToReturn for the subquery. Default: 0 (return all rows)
Public propertyNegate
Flag for setting the Predicate to negate itself, i.e. to add 'NOT' to its result.
(Inherited from Predicate.)
Public propertyObjectAlias
Alias for the object the field belongs to. Used to identify which entity to use when the entity is present multiple times in a relation collection. Alias has to match an alias specified in the relation collection or should be left empty if no alias is specified (or no relation collection is used).
(Inherited from Predicate.)
Public propertyOperatorToUse
Operator to use in the comparison
Public propertyParameters
The list of parameters created when the Predicate was translated to text usable in a query. Only valid after a succesful call to ToQueryText
(Inherited from Predicate.)
Public propertyPersistenceInfoField
Gets / sets persistenceInfo for field
Public propertyPersistenceInfoSetField
Gets / sets persistenceInfo for Setfield
Public propertySetField
Field used in the subquery (the field the set is of) (SelfServicing).
Public propertySetFieldCore
Field used in the subquery (the field the set is of) (SelfServicing).
Public propertySetFilter
Gets / sets the filter to use in the subquery
Public propertySetFilterAsPredicateExpression
Wraps SetFilter in an IPredicateExpression instance
Public propertySetRelations
Gets / sets the set relations to use in the subquery.
Public propertySetSorter
Gets / sets the setSorter expression to order the subquery results. Use it in combination with MaxNumberOfItemsToReturn set to 1
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetFrameworkElementsInPredicate
Gets a list of all framework objects (fields, expression objects etc.) which are located in this IPredicate instance. E.g. a FieldCompareValuePredicate will return a list with 1 IEntityFieldCore instance: the field to compare. If no framework elements are present in the predicate, the base implementation is used, which returns an empty list. This routine is used to gather information for Linq queries.
(Overrides PredicateGetFrameworkElementsInPredicate.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInterpretPredicate
Interprets this predicate on the passed in entity
(Inherited from Predicate.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodReadAdditionalXmlData
Reads the additional a derived type has from the reader's XML data. The reader is positioned at the 'predicate' element.
(Overrides PredicateReadAdditionalXmlData(XmlReader).)
Public methodToQueryText
Implements the IPredicate ToQueryText method. Retrieves a ready to use text representation of the contained Predicate.
(Overrides PredicateToQueryText.)
Public methodToQueryText(Boolean)
Retrieves a ready to use text representation of the contained Predicate.
(Overrides PredicateToQueryText(Boolean).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodWriteAdditionalXmlData
Writes the additional data a derived type has to the writer specified.
(Overrides PredicateWriteAdditionalXmlData(XmlWriter).)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIXmlSerializableGetSchema
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.
(Inherited from Predicate.)
Explicit interface implementationPrivate methodIXmlSerializableReadXml
Generates an object from its XML representation.
(Inherited from Predicate.)
Explicit interface implementationPrivate methodIXmlSerializableWriteXml
Converts an object into its XML representation.
(Inherited from Predicate.)
Explicit interface implementationPrivate methodIPredicateReadXml
Deserializes the predicate data on the xml reader into a predicate instance
(Inherited from Predicate.)
Explicit interface implementationPrivate methodIPredicateWriteXml
Serializes the predicate as xml to the writer specified.
(Inherited from Predicate.)
Explicit interface implementationPrivate methodIPredicateInterpretInterpret
Interprets the implementing class on the entity passed in.
(Inherited from Predicate.)
Top
Remarks
If the operator EXISTS is used, the field is ignored so can be set to null/Nothing, as the predicate will simply result in EXISTS (SELECT setField FROM ...)
This predicate isn't supported for in-memory filtering. Use FieldCompareRange for that.
See Also