DbProviderServices.CloneDbCommand Method (DbCommand)

 

See issue 2390 - cloning the DesignTimeVisible property on the DbCommand can cause deadlocks. So here allow sub-classes to override.

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

protected virtual DbCommand CloneDbCommand(
	DbCommand fromDbCommand
)

Parameters

fromDbCommand
Type: System.Data.Common.DbCommand

the DbCommand object to clone

Return Value

Type: System.Data.Common.DbCommand

a clone of the DbCommand