Class FilterElement
Represents simple filter element.
Inheritance
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 13.30.0Syntax
public class FilterElement
Constructors
FilterElement()
Initializes a new instance of the FilterElement class.
Declaration
public FilterElement()
FilterElement(String, FilterElementType, Object)
Initializes a new instance of the FilterElement class.
Declaration
public FilterElement(string source, FilterElementType type, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
FilterElementType | type | The type. |
System.Object | value | The value. |
FilterElement(String, FilterElementType, Object, Boolean)
Initializes a new instance of the FilterElement class.
Declaration
public FilterElement(string source, FilterElementType type, object value, bool valueIsTemplate)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
FilterElementType | type | The type. |
System.Object | value | The value. |
System.Boolean | valueIsTemplate | if set to |
Fields
Empty
Empty FilterElement
Declaration
public static readonly FilterElement Empty
Field Value
Type | Description |
---|---|
FilterElement |
PrimaryKeyFieldName
Represents name of primary key field
Declaration
public const string PrimaryKeyFieldName = "PrimaryKeyId"
Field Value
Type | Description |
---|---|
System.String |
Properties
ChildElements
Gets the child elements.
Declaration
public virtual FilterElementCollection ChildElements { get; }
Property Value
Type | Description |
---|---|
FilterElementCollection | The child elements. |
HasChildElements
Gets a value indicating whether this instance has child elements.
Declaration
public bool HasChildElements { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Source
Gets or sets the source.
Declaration
public virtual string Source { get; set; }
Property Value
Type | Description |
---|---|
System.String | The source. |
Type
Gets or sets the type.
Declaration
public virtual FilterElementType Type { get; set; }
Property Value
Type | Description |
---|---|
FilterElementType | The type. |
Uid
Gets or sets the uid.
Declaration
public virtual Guid Uid { get; set; }
Property Value
Type | Description |
---|---|
System.Guid | The uid. |
Value
Gets or sets the value.
Declaration
public virtual object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The value. |
ValueIsTemplate
Gets or sets a value indicating whether [value is template].
Declaration
public bool ValueIsTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
Clone()
Clones this instance.
Declaration
public FilterElement Clone()
Returns
Type | Description |
---|---|
FilterElement |
EqualElement(String, Object)
Equals the element.
Declaration
public static FilterElement EqualElement(string source, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
System.Object | value | The value. |
Returns
Type | Description |
---|---|
FilterElement |
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current System.Object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
Find(Guid)
Finds the specified uid.
Declaration
public FilterElement Find(Guid filterElementUid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | filterElementUid | The filter element uid. |
Returns
Type | Description |
---|---|
FilterElement |
GetHashCode()
Serves as a hash function for a particular type. System.Object.GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current System.Object. |
Overrides
IsNotNullElement(String)
Determines whether [is not null element] [the specified source].
Declaration
public static FilterElement IsNotNullElement(string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
Returns
Type | Description |
---|---|
FilterElement |
IsNullElement(String)
Determines whether [is null element] [the specified source].
Declaration
public static FilterElement IsNullElement(string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
Returns
Type | Description |
---|---|
FilterElement |
NotEqualElement(String, Object)
Nots the equal element.
Declaration
public static FilterElement NotEqualElement(string source, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
System.Object | value | The value. |
Returns
Type | Description |
---|---|
FilterElement |
Operators
Equality(FilterElement, FilterElement)
Operator ==s the specified field1.
Declaration
public static bool operator ==(FilterElement field1, FilterElement field2)
Parameters
Type | Name | Description |
---|---|---|
FilterElement | field1 | The field1. |
FilterElement | field2 | The field2. |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(FilterElement, FilterElement)
Operator !=s the specified field1.
Declaration
public static bool operator !=(FilterElement field1, FilterElement field2)
Parameters
Type | Name | Description |
---|---|---|
FilterElement | field1 | The field1. |
FilterElement | field2 | The field2. |
Returns
Type | Description |
---|---|
System.Boolean |