% 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:
ScalarSourceType | Description |
---|---|
DataReader | Calls the DbManager.ExecuteReader method, and then calls IDataReader.GetValue method to read the value. |
OutputParameter | Calls the DbManager.ExecuteNonQuery method, and then reads value from the IDbDataParameter.Value property. |
ReturnValue | Calls the DbManager.ExecuteNonQuery method, and then reads return value from command parameter collection. |
AffectedRows | Calls the DbManager.ExecuteNonQuery method, and then returns its return value. |