SnapDAL Library Documentation

Provider Members

Provider overview

Public Static Methods

CreateOverloaded. Load a provider for the specified ProviderType with default settings.

Protected Static Fields

DEFAULTPARAMTYPES 

Public Instance Properties

Name The name of the provider
ParamTypeMappings The parameter type mapping associated with the provider. See the documentation
Statements The statement manager and cache.

Public Instance Methods

CreateCommand Create a command for this provider. In this version, the actual sql is used instead of a statement name
CreateConnection Create a Connection for this provider
CreateDataAdapterOverloaded. Create a DataAdapter for this provider
CreateParameterOverloaded. Create a parameter for this provider and set the value
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetStatementOverloaded. Using the providers cache, retrieve a Statement for the geven statement name
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Constructors

ProviderOverloaded. Initializes a new instance of the Provider class.

Protected Instance Fields

_classTypesA holder class for the types of objects a provider can create
_paramTypesThe mapping of CLR/Types to DB types (enum values for each provider)
_recordToDir Do we record the data as we get it?
_statementsThe StatmentmentManage who can cache and collect statements

Protected Instance Methods

CloneCommand Clones a command from the statement.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetStatementOverloaded. Looks up a statement from the manager. Allows for abstractions away from the StatementManager.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

Protected Internal Instance Methods

CreateDataAdapterOverloaded.  
ExecuteScalar 
GetDataSet 
GetDataTable 
LoadDefaultParamTypes Set up the default parameter types. This method is where the provider determines both the parameter types that are supported, as well as the mapping between the IDb types and the real parameter types.

See Also

Provider Class | SnapDAL Namespace