PC Review


Reply
Thread Tools Rate Thread

Dictionary Object

 
 
bhaktisonu@gmail.com
Guest
Posts: n/a
 
      12th Feb 2008
how to create a dictionary object ?
how to use it for writing the insert method for multiple tabes having
different properties/ fields.

 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      13th Feb 2008
The dictionary object is not the best for updating multiple tables with a
single call. The best version to use, if you want a dictionary object
regardless, is to use syntax like the following:

Dictionary<keyType, valueType> dictionary = new Dictionary<keyType,
valueType>();

Or if you are into VB

Dim dict as new Dictionary<keyType, valueType>()

In the above, you will want to specify a key type and a value type. For
example, if you have orders, you might have something like this:

Dictionary<int, Order> dictionary = new Dictionary<int, Order>();
dictionary.Add(Order.OrderID, Order);

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
<(E-Mail Removed)> wrote in message
news:e6f9b321-d3f2-4c97-9e6e-(E-Mail Removed)...
> how to create a dictionary object ?
> how to use it for writing the insert method for multiple tabes having
> different properties/ fields.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dictionary with object for key Luigi Microsoft C# .NET 2 4th Nov 2008 01:58 PM
Using the Dictionary object =?Utf-8?B?dnF0aG9tZg==?= Microsoft Excel Programming 5 10th Apr 2007 05:42 PM
Dictionary Object in ASP.Net shahid.juma@gmail.com Microsoft Dot NET Framework 2 14th Jun 2005 02:35 PM
dictionary with multiple object under the same key Maersa Microsoft Dot NET Framework 4 1st Dec 2003 05:12 AM
Dictionary Object Replacement Vicky S Microsoft ASP .NET 1 26th Jun 2003 04:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:08 AM.