Class FieldExpressionExtensions

The FieldExpressionExtensions class adds supplementary factory methods to the FieldExpression class.

Inheritance
System.Object
FieldExpressionExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Common
Assembly: EPiServer.Social.Common.dll
Version: 1.5.4
Syntax
public static class FieldExpressionExtensions

Methods

Any(FieldExpression, IEnumerable<Boolean>)

Creates a new AnyExpression representing a collection of value filter expressions.

Declaration
public static AnyExpression Any(this FieldExpression field, IEnumerable<bool> value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Collections.Generic.IEnumerable<System.Boolean> value

Value to compare against the field

Returns
Type Description
AnyExpression

AnyExpression for this field and the specified value

Any(FieldExpression, IEnumerable<DateTime>)

Creates a new AnyExpression representing a collection of value filter expressions.

Declaration
public static AnyExpression Any(this FieldExpression field, IEnumerable<DateTime> value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Collections.Generic.IEnumerable<System.DateTime> value

Value to compare against the field

Returns
Type Description
AnyExpression

AnyExpression for this field and the specified value

Any(FieldExpression, IEnumerable<Double>)

Creates a new AnyExpression representing a collection of value filter expressions.

Declaration
public static AnyExpression Any(this FieldExpression field, IEnumerable<double> value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Collections.Generic.IEnumerable<System.Double> value

Value to compare against the field

Returns
Type Description
AnyExpression

AnyExpression for this field and the specified value

Any(FieldExpression, IEnumerable<Int64>)

Creates a new AnyExpression representing a collection of value filter expressions.

Declaration
public static AnyExpression Any(this FieldExpression field, IEnumerable<long> value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Collections.Generic.IEnumerable<System.Int64> value

Value to compare against the field

Returns
Type Description
AnyExpression

AnyExpression for this field and the specified value

Any(FieldExpression, IEnumerable<String>)

Creates a new AnyExpression representing a collection of value filter expressions.

Declaration
public static AnyExpression Any(this FieldExpression field, IEnumerable<string> value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Collections.Generic.IEnumerable<System.String> value

Value to compare against the field

Returns
Type Description
AnyExpression

AnyExpression for this field and the specified value

Contains(FieldExpression, Boolean)

Creates a new ContainsExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static ContainsExpression Contains(this FieldExpression field, bool value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Boolean value

Value to compare against the field

Returns
Type Description
ContainsExpression

ContainsExpression for this field and the specified value

Contains(FieldExpression, DateTime)

Creates a new ContainsExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static ContainsExpression Contains(this FieldExpression field, DateTime value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.DateTime value

Value to compare against the field

Returns
Type Description
ContainsExpression

ContainsExpression for this field and the specified value

Contains(FieldExpression, Double)

Creates a new ContainsExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static ContainsExpression Contains(this FieldExpression field, double value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Double value

Value to compare against the field

Returns
Type Description
ContainsExpression

ContainsExpression for this field and the specified value

Contains(FieldExpression, Int64)

Creates a new ContainsExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static ContainsExpression Contains(this FieldExpression field, long value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Int64 value

Value to compare against the field

Returns
Type Description
ContainsExpression

ContainsExpression for this field and the specified value

Contains(FieldExpression, String)

Creates a new ContainsExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static ContainsExpression Contains(this FieldExpression field, string value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.String value

Value to compare against the field

Returns
Type Description
ContainsExpression

ContainsExpression for this field and the specified value

EqualTo(FieldExpression, Boolean)

Creates a new EqualToExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static EqualToExpression EqualTo(this FieldExpression field, bool value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Boolean value

Value to compare against the field

Returns
Type Description
EqualToExpression

EqualToExpression for this field and the specified value

EqualTo(FieldExpression, DateTime)

Creates a new EqualToExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static EqualToExpression EqualTo(this FieldExpression field, DateTime value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.DateTime value

Value to compare against the field

Returns
Type Description
EqualToExpression

EqualToExpression for this field and the specified value

EqualTo(FieldExpression, Double)

Creates a new EqualToExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static EqualToExpression EqualTo(this FieldExpression field, double value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Double value

Value to compare against the field

Returns
Type Description
EqualToExpression

EqualToExpression for this field and the specified value

EqualTo(FieldExpression, Int64)

Creates a new EqualToExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static EqualToExpression EqualTo(this FieldExpression field, long value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Int64 value

Value to compare against the field

Returns
Type Description
EqualToExpression

EqualToExpression for this field and the specified value

EqualTo(FieldExpression, String)

Creates a new EqualToExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static EqualToExpression EqualTo(this FieldExpression field, string value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.String value

Value to compare against the field

Returns
Type Description
EqualToExpression

EqualToExpression for this field and the specified value

GreaterThan(FieldExpression, DateTime)

Creates a new GreaterThanExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static GreaterThanExpression GreaterThan(this FieldExpression field, DateTime value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.DateTime value

Value to compare against the field

Returns
Type Description
GreaterThanExpression

GreaterThanExpression for this field and the specified value

GreaterThan(FieldExpression, Double)

Creates a new GreaterThanExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static GreaterThanExpression GreaterThan(this FieldExpression field, double value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Double value

Value to compare against the field

Returns
Type Description
GreaterThanExpression

GreaterThanExpression for this field and the specified value

GreaterThan(FieldExpression, Int64)

Creates a new GreaterThanExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static GreaterThanExpression GreaterThan(this FieldExpression field, long value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Int64 value

Value to compare against the field

Returns
Type Description
GreaterThanExpression

GreaterThanExpression for this field and the specified value

GreaterThanOrEqualTo(FieldExpression, DateTime)

Creates a new GreaterThanOrEqualTo representing a comparison of the field represented by this expression to the specified value.

Declaration
public static GreaterThanOrEqualToExpression GreaterThanOrEqualTo(this FieldExpression field, DateTime value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.DateTime value

Value to compare against the field

Returns
Type Description
GreaterThanOrEqualToExpression

GreaterThanOrEqualTo for this field and the specified value

GreaterThanOrEqualTo(FieldExpression, Double)

Creates a new GreaterThanOrEqualTo representing a comparison of the field represented by this expression to the specified value.

Declaration
public static GreaterThanOrEqualToExpression GreaterThanOrEqualTo(this FieldExpression field, double value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Double value

Value to compare against the field

Returns
Type Description
GreaterThanOrEqualToExpression

GreaterThanOrEqualTo for this field and the specified value

GreaterThanOrEqualTo(FieldExpression, Int64)

Creates a new GreaterThanOrEqualTo representing a comparison of the field represented by this expression to the specified value.

Declaration
public static GreaterThanOrEqualToExpression GreaterThanOrEqualTo(this FieldExpression field, long value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Int64 value

Value to compare against the field

Returns
Type Description
GreaterThanOrEqualToExpression

GreaterThanOrEqualTo for this field and the specified value

LessThan(FieldExpression, DateTime)

Creates a new LessThan representing a comparison of the field represented by this expression to the specified value.

Declaration
public static LessThanExpression LessThan(this FieldExpression field, DateTime value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.DateTime value

Value to compare against the field

Returns
Type Description
LessThanExpression

LessThan for this field and the specified value

LessThan(FieldExpression, Double)

Creates a new LessThan representing a comparison of the field represented by this expression to the specified value.

Declaration
public static LessThanExpression LessThan(this FieldExpression field, double value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Double value

Value to compare against the field

Returns
Type Description
LessThanExpression

LessThan for this field and the specified value

LessThan(FieldExpression, Int64)

Creates a new LessThan representing a comparison of the field represented by this expression to the specified value.

Declaration
public static LessThanExpression LessThan(this FieldExpression field, long value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Int64 value

Value to compare against the field

Returns
Type Description
LessThanExpression

LessThan for this field and the specified value

LessThanOrEqualTo(FieldExpression, DateTime)

Creates a new LessThanOrEqualToExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static LessThanOrEqualToExpression LessThanOrEqualTo(this FieldExpression field, DateTime value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.DateTime value

Value to compare against the field

Returns
Type Description
LessThanOrEqualToExpression

LessThan for this field and the specified value

LessThanOrEqualTo(FieldExpression, Double)

Creates a new LessThanOrEqualToExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static LessThanOrEqualToExpression LessThanOrEqualTo(this FieldExpression field, double value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Double value

Value to compare against the field

Returns
Type Description
LessThanOrEqualToExpression

LessThan for this field and the specified value

LessThanOrEqualTo(FieldExpression, Int64)

Creates a new LessThanOrEqualToExpression representing a comparison of the field represented by this expression to the specified value.

Declaration
public static LessThanOrEqualToExpression LessThanOrEqualTo(this FieldExpression field, long value)
Parameters
Type Name Description
FieldExpression field

Field targeted by this extension method

System.Int64 value

Value to compare against the field

Returns
Type Description
LessThanOrEqualToExpression

LessThan for this field and the specified value

arrow_upward