DbSet::SqlQuery Method
Entity Framework 5.0
Creates a raw SQL query that will return entities in this set. By default, the entities returned are tracked by the context; this can be changed by calling AsNoTracking on the DbSqlQuery<TEntity> returned from this method.
Namespace: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- sql
- Type: System::String
The SQL query string.
- parameters
- Type: array<System::Object>
The parameters to apply to the SQL query string.
Return Value
Type: System.Data.Entity.Infrastructure::DbSqlQueryA DbSqlQuery object that will execute the query when it is enumerated.
Show: