Re: how to get both old and new value for a changed text box



We have a User object that is instantiated when the user authenticates
to the system that keeps track of what back end to communicate with.
That user object is handed off to every form as forms are opened.
Every middle tier business class requires a valid user object in the
New constuctor.

By using this design, we can and sometimes do give the users the
ability to redirect to a different database without logging out. We
simply force all the open forms to shutdown and then we update the user
object with new server/database information. I have one application
where they occasionally want to connect to different databases
(sometimes connecting to a local database to work offline, or to a test
database to try something without affecting production). They can
easily do this on the fly.

Does that help?

.



Relevant Pages

  • Re: Business Objects and Session Variables
    ... that a user object is generally low perf hit to fill (via database ... session, but I am not adverse to it either. ... Hitting the database to get user info when a user requests a page ... returns the user object from userID ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: (Really) Basic OO Design Guidance Needed.
    ... I suppose I need a better understanding of how this method would be ... called within the context of a program. ... That's typical of a database ... that information and construct a new User object in the program to represent ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: how to get both old and new value for a changed text box
    ... to the system that keeps track of what back end to communicate with. ... That user object is handed off to every form as forms are opened. ... ability to redirect to a different database without logging out. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Using DMO to script role assignments
    ... Have a look at the User Object under database-users collection. ... > DMO to script database roles. ... > But how do I script the assignment of a user to a role? ...
    (microsoft.public.sqlserver.programming)