Export (0) Print
Expand All

Database.SqlQuery Method

Entity Framework 5.0

An instances of this class is obtained from an DbContext object and can be used to manage the actual database backing a DbContext or connection.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method SqlQuery<TElement>(String, Object[]) Creates a raw SQL query that will return elements of the given generic type. The type can be any type that has properties that match the names of the columns returned from the query, or can be a simple primitive type.
Public method SqlQuery(Type, String, Object[]) Creates a raw SQL query that will return elements of the given type. The type can be any type that has properties that match the names of the columns returned from the query, or can be a simple primitive type.
Top
Show:
© 2014 Microsoft