Use case - static method only?

Use case - static method only?

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


ajj3085 posted on Monday, March 23, 2009

Hi,

I have a use case, so to speak, for a web application.  At certain points in the system, I'm to log an event.  I'm thinking of just having a commandbase object to handle this, and a static method that does all the work.  There's no user interaction.

Does this sound appropriate?

Thanks
Andy

JoeFallon1 replied on Monday, March 23, 2009

Yes.
That is essentially what I do.
For my web hit log I use a local Access DB file. I do not even use a CommandBase object for it. Just a class with some Shared methods.

For SQL Server logging I use a Root BO not a Command Object. I also display log results on screen if the Admin user wants to see them so I need to beable to fetch as well as "just log".

Joe

ajj3085 replied on Tuesday, March 24, 2009

Well, the command base is just to get across the data portal. 

I'll have BOs on an admin website that will read the logs as well.. so glad to know I'm on the right track.

Copyright (c) Marimer LLC