ObjectQuery.GetResultType Method ()


Returns information about the result type of the query.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

member GetResultType : unit -> TypeUsage

Return Value

Type: System.Data.Metadata.Edm.TypeUsage

A TypeUsage value that contains information about the result type of the query.

This example is based on the AdventureWorks Sales Model. The example creates an ObjectQuery<'T> of type DbDataRecord and uses GetResultType to determine whether the type returned represents a row.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5

ObjectQuery Class
System.Data.Objects Namespace
Managing Connections in Object Services (Entity Framework)
ADO.NET Metadata

Return to top