Namespaces

Types

Type SqlClientDriver

Namespace NHibernate.Driver

Parent DriverBase

Methods

Properties

Public instance methods

void Configure(IDictionary settings)

Parameters
IDictionary settings

IBatcher CreateBatcher(ConnectionManager connectionManager)

Create an instance of IBatcher according to the configuration and the capabilities of the driver
By default, .Net doesn't have any batching capabilities, drivers that does have batching support need to override this method and return their own batcher.
Parameters
return IBatcher
ConnectionManager connectionManager

IDbCommand CreateCommand()

Creates an uninitialized IDbCommand object for the SqlClientDriver.
Parameters
return IDbCommand

IDbConnection CreateConnection()

Creates an uninitialized IDbConnection object for the SqlClientDriver.
Parameters
return IDbConnection

bool Equals(object obj)

Parameters
return bool
object obj

string FormatNameForParameter(string parameterName)

Parameters
return string
string parameterName

string FormatNameForSql(string parameterName)

Parameters
return string
string parameterName

IDbCommand GenerateCommand(CommandType type, SqlString sqlString, SqlType[] parameterTypes)

Parameters
return IDbCommand
CommandType type
SqlString sqlString
SqlType[] parameterTypes

IDbDataParameter GenerateOutputParameter(IDbCommand command)

Parameters
return IDbDataParameter
IDbCommand command

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

void PrepareCommand(IDbCommand command)

Parameters
IDbCommand command

string ToString()

Parameters
return string

Public static methods

void SetParameterSizes(IDataParameterCollection parameters, SqlType[] parameterTypes)

Parameters
IDataParameterCollection parameters
SqlType[] parameterTypes

Public properties

string NamedPrefix get;

The Named Prefix for parameters.
return string

bool SupportsMultipleOpenReaders get;

The SqlClient driver does NOT support more than 1 open IDataReader with only 1 IDbConnection.
MS SQL Server 2000 (and 7) throws an exception when multiple IDataReaders are attempted to be opened. When SQL Server 2005 comes out a new driver will be created for it because SQL Server 2005 is supposed to support it.
return bool

bool SupportsMultipleQueries get;

return bool

bool UseNamedPrefixInParameter get;

MsSql requires the use of a Named Prefix in the Parameter.
${WriteSummary(content)}
return bool

bool UseNamedPrefixInSql get;

MsSql requires the use of a Named Prefix in the SQL statement.
${WriteSummary(content)}
return bool