Export (0) Print
Expand All

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)

public:
DbSqlQuery^ SqlQuery(
	String^ sql, 
	... array<Object^>^ parameters
)

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::DbSqlQuery
A DbSqlQuery object that will execute the query when it is enumerated.
Show:
© 2014 Microsoft