Export (0) Print
Expand All

DbCommand.Prepare Method

Creates a prepared (or compiled) version of the command on the data source.

Namespace:  System.Data.Common
Assembly:  System.Data (in System.Data.dll)

public abstract void Prepare()

Implements

IDbCommand.Prepare()

If the CommandType property is set to TableDirect, Prepare does nothing. If CommandType is set to StoredProcedure, the call to Prepare should succeed, although it may result in a no-op.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Show:
© 2015 Microsoft