SnapDAL Library Documentation

Statement.ExecuteStyle Property

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

public virtual string ExecuteStyle {get; set;}

See Also

Statement Class | SnapDAL Namespace