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 DbRawSqlQuery returned. Note that the entities returned are always of the type for this set and never of a derived type. If the table or tables queried may contain data for other entity types, then the SQL query must be written appropriately to ensure that only entities of the correct type are returned.
Assembly: EntityFramework (in EntityFramework.dll)
- Type: System.String
The SQL query string.
- Type: System.Object
The parameters to apply to the SQL query string.