F
Fred Mertz
I'm wondering what some of the important considerations are regarding
implementing the DAL as a static class vs creating instances of it as
needed.
I'm writing a .NET 2.0 Windows application (MDI) that will communicate with
a SQL Server; approximately 120 users.
On smaller apps I have tended to implement the DAL as a static class. But
this new app will likely spawn background threads periodically to update
business objects throughout the session. All such threads (likely not more
than one or two at a time) would make use of the DAL.
This is my first foray into multi-threaded apps - so I'm wanting to proceed
with caution and guidance. So any relevant would be appreciated!
implementing the DAL as a static class vs creating instances of it as
needed.
I'm writing a .NET 2.0 Windows application (MDI) that will communicate with
a SQL Server; approximately 120 users.
On smaller apps I have tended to implement the DAL as a static class. But
this new app will likely spawn background threads periodically to update
business objects throughout the session. All such threads (likely not more
than one or two at a time) would make use of the DAL.
This is my first foray into multi-threaded apps - so I'm wanting to proceed
with caution and guidance. So any relevant would be appreciated!