<% group # Abstract accessor attributes %>

If a method returns a scalar value, this attribute can be used to specify how database returns this value. The ScalarSource attribute take a parameter of the ScalarSourceType type:
ScalarSourceTypeDescription
DataReaderCalls the DbManager.ExecuteReader method, and then calls IDataReader.GetValue method to read the value.
OutputParameterCalls the DbManager.ExecuteNonQuery method, and then reads value from the IDbDataParameter.Value property.
ReturnValueCalls the DbManager.ExecuteNonQuery method, and then reads return value from command parameter collection.
AffectedRowsCalls the DbManager.ExecuteNonQuery method, and then returns its return value.

ScalarSource.cs <% ..\..\..\HowTo\DataAccess\ScalarSource.cs %> App.config <% Doc\Data\App.config %> Create.sql script