<DatabaseCodeName> class

Extends the <DatabaseCodeName>_Base class. Add your custom code here. The class is generated only once and never rewritten.

Constructors


C#:
public <DatabaseCodeName>();

VB.NET:
Public Sub New()

Description

Initializes a new instance of the <DatabaseCodeName> class.

Parameters

None

Methods


C#:
protected override string CreateCollectionParameterName(
string baseParamName
);

VB.NET:
Protected Overrides Function CreateCollectionParameterName( _
baseParamName As String _
) As String

Description

Creates a .Net data provider specific parameter name that is used to create a parameter object and add it to the parameter collection of System.Data.IDbCommand.

Parameters

baseParamName

The base name of the parameter.

Returns

The full data provider specific parameter name.

C#:
protected override System.Data.IDbConnection CreateConnection();

VB.NET:
Protected Overrides Function CreateConnection() As System.Data.IDbConnection

Description

Creates a new connection to the database.

Parameters

None

Returns

An System.Data.IDbConnection object.

C#:
internal protected override string CreateSqlParameterName(
string paramName
);

VB.NET:
Friend Protected Overrides Function CreateSqlParameterName( _
paramName As String _
) As String

Description

Returns a SQL statement parameter name that is specific for the data provider. For example it returns ? for OleDb provider, or @paramName for MS SQL provider.

Parameters

paramName

The data provider neutral SQL parameter name.

Returns

The SQL statement parameter name.