Mercurial > pub > bltoolkit
view Tools/DocGen/Content/Doc/DataAccess/ScalarSource.htm @ 2:79a04c6442bf
file name case fix
author | cin |
---|---|
date | Fri, 22 Aug 2014 13:41:57 +0400 |
parents | f990fcb411a9 |
children |
line wrap: on
line source
<% group # Abstract accessor attributes %> <p class='j'> If a method returns a scalar value, this attribute can be used to specify how database returns this value. The <b>ScalarSource</b> attribute take a parameter of the <b>ScalarSourceType</b> type: <table class='data'> <tr><th>ScalarSourceType</th><th>Description</th></tr> <tr><td>DataReader</td><td>Calls the <b>DbManager.ExecuteReader</b> method, and then calls <b>IDataReader.GetValue</b> method to read the value.</td></tr> <tr><td>OutputParameter</td><td>Calls the <b>DbManager.ExecuteNonQuery</b> method, and then reads value from the <b>IDbDataParameter.Value</b> property.</td></tr> <tr><td>ReturnValue</td><td>Calls the <b>DbManager.ExecuteNonQuery</b> method, and then reads return value from command parameter collection.</td></tr> <tr><td>AffectedRows</td><td>Calls the <b>DbManager.ExecuteNonQuery</b> method, and then returns its return value.</td></tr> </table> </p> ScalarSource.cs <% ..\..\..\HowTo\DataAccess\ScalarSource.cs %> App.config <% Doc\Data\App.config %> <a href="../Data/CreateSql.htm">Create.sql script</a>