The CommandConfig class is used to combine an SQL statment and its associated parameters
into a single object
Namespace:
DbNetLink.DataAssembly: DbNetLink.DbNetData (in DbNetLink.DbNetData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public class CommandConfig |
| Visual Basic (Declaration) |
|---|
Public Class CommandConfig |
| Visual C++ |
|---|
public ref class CommandConfig |
Remarks
The CommandConfig class can be used with the following methods
Examples
DbNetData Db = new DbNetData("Server=dbserver;Database=Northwind;Trusted_Connection=true;"); CommandConfig CmdConfig = new CommandConfig("select * from customers where city = @city and country = @country"); CmdConfig.Params["city"] = "London"; CmdConfig.Params["country"] = "UK"; Db.ExecuteQuery(CmdConfig);
Inheritance Hierarchy
System..::.Object
DbNetLink.Data..::.CommandConfig
DbNetLink.Data..::.QueryCommandConfig
DbNetLink.Data..::.UpdateCommandConfig
DbNetLink.Data..::.CommandConfig
DbNetLink.Data..::.QueryCommandConfig
DbNetLink.Data..::.UpdateCommandConfig