Click or drag to resize

PFQueryFilter Class

Represents a filter in a PFQuery.
Inheritance Hierarchy

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
[XmlIncludeAttribute(typeof(PFQueryFilter_Boolean))]
[XmlIncludeAttribute(typeof(PFQueryFilter_DateTime))]
[XmlIncludeAttribute(typeof(PFQueryFilter_User))]
[XmlIncludeAttribute(typeof(DateTimeOffset))]
[XmlIncludeAttribute(typeof(PFQueryFilter_File))]
[KnownTypeAttribute(typeof(PFQueryFilter_Boolean))]
[KnownTypeAttribute(typeof(PFQueryFilter_DateTime))]
[KnownTypeAttribute(typeof(PFQueryFilter_User))]
[KnownTypeAttribute(typeof(DateTimeOffset))]
[KnownTypeAttribute(typeof(PFQueryFilter_File))]
[DataContractAttribute]
public class PFQueryFilter

The PFQueryFilter type exposes the following members.

Constructors
  NameDescription
Public methodPFQueryFilter
Initializes a new instance of the PFQueryFilter class.
Public methodPFQueryFilter(String)

[Special constructor, to be used only knowingly]

Creates a filter with an unknown value! Will not work in direct query. For stored procedure system.
Public methodPFQueryFilter(String, PFQueryFilterOperator)

[Special constructor, to be used only knowingly]

Creates a filter with an unknown value! Will not work in direct query. For stored procedure system.
Public methodPFQueryFilter(String, Object)
Initializes a new instance of the PFQueryFilter class.
Public methodPFQueryFilter(Guid, String, Object)
Initializes a new instance of the PFQueryFilter class.
Public methodPFQueryFilter(String, PFQueryFilterOperator, Object)
Initializes a new instance of the PFQueryFilter class.
Public methodPFQueryFilter(Guid, String, PFQueryFilterOperator, Object)
Initializes a new instance of the PFQueryFilter class.
Top
Properties
  NameDescription
Public propertyCoalesce

Gets or sets a value indicating whether the column value, if null, should be converted for this test.

Ex: "SampleColumn!='Test'" becomes "COALESCE(SampleColumn, '')!='Test'" if this is enabled and the chosen coalesce value is an empty string.

Public propertyCoalesceValue

Gets or sets a value to use as an alternative for the column value if it is null.

Used only if the property Coalesce is True.

Ex: "SampleColumn!='Test'" becomes "COALESCE(SampleColumn, '')!='Test'" if Coalesce is True and the chosen coalesce value is an empty string.

Public propertyFieldName
Gets or sets the name of the target field/column.
Public propertyFieldValue
Gets or sets the value used for comparisons.
Public propertyFilterOnGroupedValues

Gets or sets a value indicating whether the filter should apply to splitted values after group instead of filtering objects directly.

This will only apply -To choice and user multi-values fields. -If the filtered field is also grouped. -If the filtered value is not null.

Note : this parameter is NOT serialized because its use is very rare.

Public propertyHasRestriction
Gets a value indicating whether there are restrictions,

limiting the use of this filter to certain objects.

Public propertyIgnoreAccents
Gets or sets a value indicating whether this filter should ignore accents or not.

Note : this only applies when the database is currently NOT ignoring accents by default.

Attention, this can greatly degrade performances!

Public propertyOperator
Gets or sets the filter's operator.
Public propertyRestrictedToParents
Gets or sets a list of parents' GUIDs.

If not empty, the filter will be applied to a subset of objects, depending on their parent.

Public propertyUnknownValue
Gets or sets a value indicating whether the filter value is already known.

This is typically used (= set to true) when a query is created to be stored and not executed immediately, e.g. for stored procedures.

Top
Methods
  NameDescription
Public methodStatic memberCreate
Creates a new instance of the PFQueryFilter class.
Public methodDisableCoalesce
Disables coalesce mode for this filter. See Coalesce property for more information.
Public methodEnableCoalesce
Enables coalesce mode for this filter with a given value. See Coalesce property for more information.
Public methodToString
Creates a display value of this filters.
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also