/ Assembly List / LJCDataAccess / ProviderFactory

Namespace - LJCDataAccess


Syntax

C#
public class ProviderFactory

Implements a data provider factory layer. (R)

Remarks

The Provider Factory class encapsulates the repetitive code required to access the System.Data.Common.DBProviderFactory object. This reduces the code required to access this functionality and provides a standard location for implementing common best practices.

This class is used by the LJCDataAccess class.

Public Methods
#ctor Initializes an object instance.
#ctor Initializes an object instance with the provided values,
CloseConnection Closes the database connection.
CreateCommand Retrieves the DbCommand object.
CreateConnection Retrieves the DbConnection object.
CreateDataAdapter Creates the DbDataAdapter object.
OpenConnection Opens the database connection.
7 Methods

Private Methods
CreateDbProviderFactory Creates the DbProviderFactory object.
1 Methods

Properties
ConnectionString Gets the ConnectionString value.
DbProviderFactory Gets a reference to the DbProviderFactory object.
ProviderName Gets the ProviderName value.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.