% group # Methods %>
<% order # 1 %>
Typical scenario of using DbManager includes the following steps:
- Create a DbManager class instance.
- Set an SQL command or a stored procedure name.
- Call an ExecuteXXX method.
The SetCommand method is used to set an SQL statement and to provide command parameters, if any.
SetCommand.cs
<% ..\..\..\HowTo\Data\SetCommand.cs %>
Person.cs
<% ..\..\..\HowTo\DataAccess\Person.cs %>
Gender.cs
<% ..\..\..\HowTo\DataAccess\Gender.cs %>
App.config
<% Doc\Data\App.config %>
Create.sql script