DbFactory ClassNReco.Data Class Library Documentation
Generic IDbFactory implementation that may be used with most ADO.NET Data Providers.
Inheritance Hierarchy

System Object
  NReco.Data DbFactory

Namespace: NReco.Data
Assembly: NReco.Data (in NReco.Data.dll) Version: 1.0.2
Syntax

public class DbFactory : IDbFactory

The DbFactory type exposes the following members.

Constructors

  NameDescription
Public methodDbFactory
Initializes a new instance of the DbFactory class
Top
Methods

  NameDescription
Public methodAddCommandParameter
Protected methodApplyIdentifierFormat
Public methodCreateCommand
Public methodCreateConnection
Public methodCreateSqlBuilder
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetCmdParameterPlaceholder
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetInsertId
Public methodGetInsertIdAsync
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields

  NameDescription
Protected fieldDbPrvFactory
Top
Properties

  NameDescription
Public propertyCommandTimeout
Public propertyIdentifierFormat
Public propertyLastInsertIdSelectText
Gets or sets SQL command for retrieving ID for last inserted row.
Public propertyParamNameFormat
Public propertyParamPlaceholderFormat
Top
Examples

var dbFactory = new DbFactory(System.Data.SqlClient.SqlClientFactory.Instance);
See Also