EntityConnection.CreateCommand Method ()

 

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

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

public virtual EntityCommand CreateCommand()

Exception Condition
InvalidOperationException

The name of the underlying data provider is not known.