Rediger

Del via


EntityConnection.CreateCommand Method

Definition

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

public:
 System::Data::EntityClient::EntityCommand ^ CreateCommand();
public System.Data.EntityClient.EntityCommand CreateCommand ();
override this.CreateCommand : unit -> System.Data.EntityClient.EntityCommand
Public Function CreateCommand () As EntityCommand

Returns

An EntityCommand object.

Exceptions

The name of the underlying data provider is not known.

Applies to