RE: shared methods in data access by NoSpamMgbworld
NoSpamMgbworld
Thu Sep 30 15:31:05 CDT 2004
If you are getting an issue, you will have the same issue whether it is
static/Shared or an instance method, as the bog will be in the data pipe
rather than the method. I guess, theoretically, you could have an issue, but
the ADO.NET architecture is such that the calling connection and the actual
underlying connection are two different objects.
Shared saves you from having to instance the app block for each call,
reducing load time for the methods. The actual objects created and run are
lower down the stack.
Not sure if this is making sense, so the short answer is "I would not worry
about it at all".
---
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"dan" wrote:
> I am noticing that the methods in MS's data application block are all shared.
> Any implications for performance with this? Seems like if users are sharing
> methods, we could take some sort of hit if they are accessing the same
> methods.
>
>
> Thanks,
>
> Dan
>