Mercurial > pub > bltoolkit
comparison Tools/DocGen/Content/Doc/DataAccess/ScalarSource.htm @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
1 <% group # Abstract accessor attributes %> | |
2 | |
3 <p class='j'> | |
4 If a method returns a scalar value, this attribute can be used to specify how database returns this value. | |
5 The <b>ScalarSource</b> attribute take a parameter of the <b>ScalarSourceType</b> type: | |
6 | |
7 <table class='data'> | |
8 <tr><th>ScalarSourceType</th><th>Description</th></tr> | |
9 <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> | |
10 <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> | |
11 <tr><td>ReturnValue</td><td>Calls the <b>DbManager.ExecuteNonQuery</b> method, and then reads return value from command parameter collection.</td></tr> | |
12 <tr><td>AffectedRows</td><td>Calls the <b>DbManager.ExecuteNonQuery</b> method, and then returns its return value.</td></tr> | |
13 </table> | |
14 </p> | |
15 | |
16 ScalarSource.cs | |
17 <% ..\..\..\HowTo\DataAccess\ScalarSource.cs %> | |
18 App.config | |
19 <% Doc\Data\App.config %> | |
20 <a href="../Data/CreateSql.htm">Create.sql script</a> |