EntityConnection.CreateCommand Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.