Class Life

Class Life

Old forum URL: forums.lhotka.net/forums/t/4014.aspx


smgrisw posted on Monday, December 10, 2007

I am fairly new to CSLA. I have a question about what to do after a save method has been applied to a class.  Specifically, I have a class that represents an appointment object.  After the appointment has been saved and stored in the database I am unsure as to what the pattern is for the next step:

1.      Should the class be re-initialized so that the next appointment can be created?

2.      Should the members of the class that make up the appointment be re-initialized with out creating a new instance of the class?

3.      Am I missing the pattern completely and the process is different then what I have described above.

Thanks,
Scott



ajj3085 replied on Monday, December 10, 2007

What happens in your use case?  Usually in my cases the form is rebound to the form so that the user can continue to edit the object.  They can choose to close the window if they want.

Copyright (c) Marimer LLC