Share via


EntityConnection.CreateCommand Method

Definition

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

public virtual System.Data.Entity.Core.EntityClient.EntityCommand CreateCommand ();
override this.CreateCommand : unit -> System.Data.Entity.Core.EntityClient.EntityCommand
Public Overridable Function CreateCommand () As EntityCommand

Returns

An EntityCommand object.

Exceptions

The name of the underlying data provider is not known.

Applies to