Mercurial > pub > bltoolkit
view Tools/DocGen/Content/Doc/DataAccess/ScalarSource.htm @ 6:11b6da379593
Исправлена странная ошибка при использовании OfType<...>().Where(...)
author | cin |
---|---|
date | Mon, 05 Dec 2016 05:50:52 +0300 |
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>