G
Guest
Hi,
I have a requirement wherein I need to maintain the state of the data in the
windows forms form application (C#).
Basically the interface is a graphical rich interface where there are
different shapes and on double click of each shape, a tab window pertaining
to that shape will be opened up and the user enters the requried data
Finally,the data entered would be saved as a file - a Nevron shape diagram
file,which is when the entire data from
various tabs are to saved into the database tables . I would want the save
process , for saving the whole of data for all the tab data - (containing
inserts/updates/deletes) to be within a transaction.
When retrieving, the data for thart files needs to be populated for each tab
concerning the shapes in the file.
What is the best approach to maintain the state? I was considering using the
following approaches
1.Using the datasets - But by using dataset I am not able to maintain the
record state.
2.Using Value objects - The other approach which is okay, but of which I am
not sure enough to proceed.Here I will have the value object defined for each
of the database tables along with additional column - Status.This will be a
enum value to denote - added,deleted,modified,unchanged
Can any of the members pls help with the right approach for this?
Thanks in advance,
Dileep
I have a requirement wherein I need to maintain the state of the data in the
windows forms form application (C#).
Basically the interface is a graphical rich interface where there are
different shapes and on double click of each shape, a tab window pertaining
to that shape will be opened up and the user enters the requried data
Finally,the data entered would be saved as a file - a Nevron shape diagram
file,which is when the entire data from
various tabs are to saved into the database tables . I would want the save
process , for saving the whole of data for all the tab data - (containing
inserts/updates/deletes) to be within a transaction.
When retrieving, the data for thart files needs to be populated for each tab
concerning the shapes in the file.
What is the best approach to maintain the state? I was considering using the
following approaches
1.Using the datasets - But by using dataset I am not able to maintain the
record state.
2.Using Value objects - The other approach which is okay, but of which I am
not sure enough to proceed.Here I will have the value object defined for each
of the database tables along with additional column - Status.This will be a
enum value to denote - added,deleted,modified,unchanged
Can any of the members pls help with the right approach for this?
Thanks in advance,
Dileep