Returns the data for the current record in the data reader as a Hashtable
Namespace:
DbNetLink.DataAssembly: DbNetLink.DbNetData (in DbNetLink.DbNetData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public Hashtable GetHashtable( QueryCommandConfig Query ) |
| Visual Basic (Declaration) |
|---|
Public Function GetHashtable ( _ Query As QueryCommandConfig _ ) As Hashtable |
| Visual C++ |
|---|
public: Hashtable^ GetHashtable( QueryCommandConfig^ Query ) |
Parameters
- Query
- Type: DbNetLink.Data..::.QueryCommandConfig
[Missing <param name="Query"/> documentation for "M:DbNetLink.Data.DbNetData.GetHashtable(DbNetLink.Data.QueryCommandConfig)"]
Return Value
A Hashtable
Examples
DbNetData Db = new DbNetData( ConfigurationManager.ConnectionStrings["nwind"] ); Db.Open(); ListDictionary Params = new ListDictionary(); Params["productid"] = ProductID.Value; Hashtable ProductData = new Hashtable(); if ( Db.ExecuteSingletonQuery("select * from products where productid = @productid", Params) ) ProductData = Db.GetHashtable(); Db.Close();