Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
General MM .NET question
Message
De
25/02/2009 16:42:16
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01384040
Message ID:
01384182
Vues:
45
Yes, I just re-read his post and see the Debits and Credits. Maybe I was focusing on the wrong part of his question. For transactions that are Debits and Credits they should absolutly be wrapped in a transaction as you suggest.
Tim

>What Sam (I believe) is referring to is a transaction situation where you would never save one record by itself as in the double entry method of accounting world dictates debits equal credits, therefore you would need at least two records saved or none. To facilitate this he would need a parent child relationship between two business objects via the framework and utilize database transactions.
>
>
>
>>Hi Bob,
>>
>>I am not following your comment. Sam was asking about editing records and navigating to another for edit without saving until all the desired records were edited. Although he could easily get rid of the "AskToSave" function, he wants to not save the DataSet until they are finished editing all of them. The framework does trigger a save or cancel when you navigate. Is there something in that section I am not seeing?
>>Tim
>>
>>>Tim,
>>>
>>>See the section "Establishing Business Object Relationships" in the MM.Net user guide.
>>>
>>>Bob
>>>
>>>>I am trying to understand the overall design of the Mere Mortals framework. After experimenting with the jump start, it seems that the framework expects the user to edit one record at a time and then save those changes before moving onto another record. If the user attempts to move to another record without saving the changes to the first record, they are asked if they want to save the changes. Answering No to that question seems to cancel the changes to the first record and then move onto the next record.
>>>>
>>>>I am a C.P.A. and in my world we work with a group of accounting transactions at a time. We may have several debits and several credits that need to be edited and saved together as a group. We may add new records or delete records or edit existing records but we want to save the entire group of records all at one time. I have experimented with the ImmediateDelete property of the Business Object to keep the framework from propagating deletions to the backend database immediately. But after deleting a record in the business object's datatable, I seem to be prohibited from doing anything with any other record until I either save the changes by answering Yes when prompted because I want to move to another record, or answering No which cancels the deletion.
>>>>
>>>>I must not be seeing the forest for the trees. Certainly there must be a way built into the framework to accomodate working with a group of records before saving all of them at one time. I never want to use grids for editing, I just want to be able to edit multiple records one at a time and then save all the changes.
>>>>
>>>>Sam Tenney
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform