var people = entities.People.Where("it.Name LIKE @searchTerm", new ObjectParameter("searchTerm", searchTerm));
More Related Contents:
- How to use DbContext.Database.SqlQuery(sql, params) with stored procedure? EF Code First CTP5
- Calling a SQL User-defined function in a LINQ query
- Search SQL by date ASP.NET
- I want to insert a record in DB and then need to return a row
- How can I add user-supplied input to an SQL statement?
- How to get last inserted id?
- What is the syntax for an inner join in LINQ to SQL?
- What are the pros and cons to keeping SQL in Stored Procs versus Code [closed]
- LINQ to Entities does not recognize the method ‘System.String ToString()’ method, and this method cannot be translated into a store expression
- ‘Contains()’ workaround using Linq to Entities?
- Method cannot be translated into a store expression
- C# SQL Server – Passing a list to a stored procedure
- linq case statement
- How can I log the generated SQL from DbContext.SaveChanges() in my Program? [duplicate]
- SQL WHERE clause matching values with trailing spaces
- Equivalent of SQL ISNULL in LINQ?
- SqlBulkCopy from a List
- How to fill Dataset with multiple tables?
- SqlConnection.Close() inside using statement
- Passing a SQL parameter to an IN() clause using typed datasets in .NET
- How do I perform Date Comparison in EF query?
- ASP.NET ODBC Query with parameters
- The variable name ‘@’ has already been declared. Variable names must be unique within a query batch or stored procedure
- How do I translate a List into a SqlParameter for a Sql In statement? [duplicate]
- How to create NVarchar(max) Sqlparameter in C#? [duplicate]
- The LINQ expression node type ‘ArrayIndex’ is not supported in LINQ to Entities
- How do you construct a LINQ to Entities query to load child objects directly, instead of calling a Reference property or Load()
- Stored procedure returns int instead of result set
- Mapping columns in a DataTable to a SQL table with SqlBulkCopy
- SQL connection string for microsoft access 2010 .accdb