CreateCommand Method

EntityConnection.CreateCommand Method ()

 

Creates a new instance of an EntityCommand, with the Connection set to this EntityConnection.

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

Public Function CreateCommand As EntityCommand

Exception Condition
InvalidOperationException

The name of the underlying data provider is not known.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft