SnapDAL Library Documentation

DataFactory Methods

The methods of the DataFactory class are listed below. For a complete list of DataFactory class members, see the DataFactory Members topic.

Public Instance Methods

BeginTransaction Begin a new transaction on the connection associated with this DataFactory. This has the affect of opening the connection. It DOES NOT follow that subsequent calls will be on the same transaction however. This feature is under consideration.
CreateCommandOverloaded. Replace a Command in the StatementManager with the provided sql statement(CommandType.Text) Under the following conditions, the existing connection will be put on the IDbCommand - the commands connection is null - the type is compatible
CreateDataAdapter Setup a data adapter with the given sql statements. These statements are ex
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
ExecuteDataReaderOverloaded. Execute the statement returning a IDataReader of results with a transaction
ExecuteNonQueryOverloaded. Execute the given statement with the given input parameters and output parameters
ExecuteScalarOverloaded. Execute the given statement and return a single value
ExecuteXmlReader Execute the given statement and return an XmlReader with the results
GetCommand get a Command for the statement of the given name. It is up to the caller to initialize this Command with connections, parameters etc. Note that this is just a copy of the command in the StatementManager so any changes you make will be isolated to the instance you are working with.
GetDataSetOverloaded. Execute the given statement and return the results in a DataSet
GetDataTableOverloaded. Execute the given statement and return the results in a datatable
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.
GetType (inherited from Object)Gets the Type of the current instance.
ResetConnection Resets the connection to the providers connection object and the existing connection string. This is a work around the problem that a recording provider used in this datafactory will not have the real provider set until after the initial connection is established which causes the intial connection to be a mock connection when often you would prefer the connectio to be that of the recorded provider.
SyncDataSet Synchronize the DataSet with the data store using the data adapter (for completeness only)
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

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.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

DataFactory Class | SnapDAL Namespace