SnapDAL Library Documentation

Statement Members

Statement overview

Public Instance Fields

CommandTimeout The command timeout associated with the statement
CommandType The type of command based one the CommandType enum
Description Optional description of this statement for use in code gen
Name The name of the statment in terms of your application
OutputParms The output parameters used by this statement.
Parms Input parameters. These must be created by code
SQL The Sql the statement represents and will execute

Public Instance Properties

Command The actual IDbCommand that will be called for this statement
ExecuteStyle A representation of the execute style expected for this statement. These are: DataReader, Scalar, NonQuery. It is assumed that GetDataSet is always possible where DataReader is the style. This method is intended for code generation purposes. If the property is set in the statement file, that setting will be used, otherwise a set of regexes in the DataFactory config file will parse the statement name and infer a statement type in the following manner. All words are case insensitive DataReader statement name contains get, query, list, select statement SQL contains select if the following scalar and non query tests don't result in a match, DataReader will be the default execute style Scalar statement name contains scalar NonQuery statement name contains update, add, create, delete, insert statement SQL contains update, insert, select into, delete
Provider The SnapDal Provider

Public Instance Methods

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.
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

Statement ConstructorInitializes a new instance of the Statement class.

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

Statement Class | SnapDAL Namespace