Share via


DbCommandDefinition Class

Definition

A prepared command definition, can be cached and reused to avoid repreparing a command.

public class DbCommandDefinition
type DbCommandDefinition = class
Public Class DbCommandDefinition
Inheritance
DbCommandDefinition

Constructors

DbCommandDefinition()

Initializes a new instance of the DbCommandDefinition class.

DbCommandDefinition(DbCommand, Func<DbCommand,DbCommand>)

Initializes a new instance of the DbCommandDefinition class using the supplied DbCommand .

Methods

CreateCommand()

Creates and returns a DbCommand object that can be executed.

Applies to