0
|
1 <% group # Methods %>
|
|
2 <% order # 1 %>
|
|
3 <p class='j'>
|
|
4 Typical scenario of using <b>DbManager</b> includes the following steps:
|
|
5 <ul>
|
|
6 <li>Create a <b>DbManager</b> class instance.
|
|
7 <li>Set an SQL command or a stored procedure name.
|
|
8 <li>Call an <b>ExecuteXXX</b> method.
|
|
9 </ul>
|
|
10 The <b>SetCommand</b> method is used to set an SQL statement and to provide command parameters, if any.
|
|
11 </p>
|
|
12
|
|
13 SetCommand.cs
|
|
14 <% ..\..\..\HowTo\Data\SetCommand.cs %>
|
|
15 <a name='Person'></a>
|
|
16 Person.cs
|
|
17 <% ..\..\..\HowTo\DataAccess\Person.cs %>
|
|
18 Gender.cs
|
|
19 <% ..\..\..\HowTo\DataAccess\Gender.cs %>
|
|
20 App.config
|
|
21 <% Doc\Data\App.config %>
|
|
22 <a href="CreateSql.htm">Create.sql script</a>
|
|
23
|