ObjectQuery<T>.Where Method (String, ObjectParameter[])

 

Limits the query to results that match specified filtering criteria.

Namespace:   System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

public ObjectQuery<T> Where(
	string predicate,
	params ObjectParameter[] parameters
)

Parameters

predicate
Type: System.String

The filter predicate.

parameters
Type: System.Data.Entity.Core.Objects.ObjectParameter[]

Zero or more parameters that are used in this method.

Return Value

Type: System.Data.Entity.Core.Objects.ObjectQuery<T>

A new ObjectQuery<T> instance that is equivalent to the original instance with WHERE applied.

Exception Condition
ArgumentNullException

predicate is null or parameters is null.

ArgumentException

The predicate is an empty string.