Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted

Some folks on my team want to change our data access layer to be all Shared methods instead of requiring new instances for single method calls. Would this not introduce the opportunity for problems in these methods? My understanding is that even the variables inside the implementations are shared so that if two clients made a call to a DAL method at the same time it introduces the potential for conflict. Am I wrong?

 

On a side note, I argue that a "stateless" class/component does *not* imply all shared/static, my colleague says it does. I say that as long as the class makes no attempt to maintain any state after the caller is done it can be called stateless. Who's right?

--tim

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...