Click here to Skip to main content
15,889,335 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Create of PS Pin
Mike Dimmick15-Feb-05 3:02
Mike Dimmick15-Feb-05 3:02 
GeneralGet Top 10 from a search engine Pin
Mohsen Saad12-Feb-05 7:38
Mohsen Saad12-Feb-05 7:38 
General.ARaw Packets Pin
Member 170239812-Feb-05 2:43
Member 170239812-Feb-05 2:43 
GeneralVisual Studio: DLL location for Debug Pin
Jerome RG12-Feb-05 0:51
Jerome RG12-Feb-05 0:51 
GeneralInformation Needed about MicroSoft Speech Server Pin
anand.narayan11-Feb-05 18:33
anand.narayan11-Feb-05 18:33 
GeneralCommunicating with a windows service from a forms application... Pin
obliojoe11-Feb-05 6:15
obliojoe11-Feb-05 6:15 
General.NET Forms: tab control flickering Pin
spoonspoon10-Feb-05 15:15
spoonspoon10-Feb-05 15:15 
GeneralTransactional hash tables Pin
Ray Cassick10-Feb-05 14:41
Ray Cassick10-Feb-05 14:41 
Is there any available design patterns that allow you to add data to hash tables in a transactional manner? (ie: roll back the addition in the event that adding data to one should fail)?

I am building a prototype class for a project I am working on that needs to store some data and I am trying it out two ways to see how it works.

One way is to use an in memory dataset with a few columns to store the data, the other on using a few hash tables to store each column along with its key.

Since the addition to the hash tables will require multiple hashtabel_name.Add() function calls I am thinking that there is the remote possibility that one add might fail for some reason. I would love to be able to roll back the other additions that have been made up to the point where I error out. Barring the use of a try/catch block around each .Add() and then the correct .Remove() calls for each of the previous hash tables, is there any 'known and tested' way of doing this?

Am I wasting my time here? Would it just be simpler to use a dataset for this and do my CRUD with SQL queries when I need to? I want to keep this as lean as needed. The data will not need to be persisted to any physical devices (ie: saved to disk) and is only used in the context of the class.

The big reason I am considering the hash table route is that one of the 'columns' needs to store a reference to another class and I am not sure if I could accomplish what I am trying to do with a dataset.


Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.


GeneralCInt(True) in C# Pin
goldoche10-Feb-05 8:54
goldoche10-Feb-05 8:54 
GeneralRe: CInt(True) in C# Pin
C# Genius10-Feb-05 9:06
C# Genius10-Feb-05 9:06 
GeneralRe: CInt(True) in C# Pin
S. Senthil Kumar10-Feb-05 10:02
S. Senthil Kumar10-Feb-05 10:02 
GeneralDifference in data types Pin
Ray Cassick9-Feb-05 10:43
Ray Cassick9-Feb-05 10:43 
GeneralRe: Difference in data types Pin
Christian Graus9-Feb-05 11:09
protectorChristian Graus9-Feb-05 11:09 
GeneralRe: Difference in data types Pin
S. Senthil Kumar9-Feb-05 19:20
S. Senthil Kumar9-Feb-05 19:20 
QuestionEasy way to localize an app? - Managing Localization? Pin
Simon Kittle9-Feb-05 4:59
Simon Kittle9-Feb-05 4:59 
QuestionHow to get Physical Address of NIC? Pin
thainam8-Feb-05 16:54
thainam8-Feb-05 16:54 
AnswerRe: How to get Physical Address of NIC? Pin
C# Genius10-Feb-05 8:56
C# Genius10-Feb-05 8:56 
GeneralNET debuggers do not work Pin
rwestgraham8-Feb-05 9:01
rwestgraham8-Feb-05 9:01 
GeneralRe: NET debuggers do not work Pin
rwestgraham8-Feb-05 13:15
rwestgraham8-Feb-05 13:15 
GeneralStrongNameIdentityPermission issue Pin
tflagg8-Feb-05 6:37
tflagg8-Feb-05 6:37 
GeneralRe: StrongNameIdentityPermission issue Pin
tflagg8-Feb-05 10:00
tflagg8-Feb-05 10:00 
GeneralClass library load Pin
QuaKx7-Feb-05 20:53
QuaKx7-Feb-05 20:53 
GeneralRe: Class library load Pin
S. Senthil Kumar8-Feb-05 10:15
S. Senthil Kumar8-Feb-05 10:15 
QuestionOnDisconnect? Pin
Magnus277-Feb-05 5:59
Magnus277-Feb-05 5:59 
Generalworking with .NET 2.0 and .NET 1.1 Pin
TheSnakeByte6-Feb-05 22:11
TheSnakeByte6-Feb-05 22:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.