We do store objeects such as this in session state on the web server. The
BLL and DAL layers are stateless and load balanced.
I am wondering about threading. If there are multiple concurrent users
logged into the web app, will they be single threaded through the bll/dal
layers?
"Peter Bromberg [C# MVP]" <pbromberg@yahoo.nospammin.com> wrote in message
news:BEF937E9-F7A4-498E-AA30-A184250B2E0D@microsoft.com...[color=blue]
>I think conceptually, the key question to ask is "could my system ever use
> more that one of these objects?". If it's a "Customer" class, obviously
> the
> answer would be yes, and you wouldn't want static there.
>
> However if you take a look at something like the ADO.NET v2 "SqlHelper"
> class from the Application Blocks, every method in that is static. In
> fact,
> the SqlParameterCache in it has to be static, since it's caching your
> SqlParameters for you.
>
> Hope that helps.
> Peter
>
> --
> Co-founder, Eggheadcafe.com developer portal:
>
http://www.eggheadcafe.com
> UnBlog:
>
http://petesbloggerama.blogspot.com
>
>
>
>
> "Thirsty Traveler" wrote:
>[color=green]
>> I am still a little confused on when it makes sense to use static
>> methods.
>> For example, if we have a web page that calls a business logic layer that
>> calls a data access layer, should the method calls be static if no data
>> is
>> stored as state in the components?
>>
>>
>>[/color][/color]