Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple Components In One Solution Accessing Data
Message
General information
Forum:
ASP.NET
Category:
Class design
Title:
Multiple Components In One Solution Accessing Data
Miscellaneous
Thread ID:
01431578
Message ID:
01431578
Views:
75
I'm working on a solution that pulls in components from different projects. I have my Data Access class, some custom controls I wrote, my App Security class, and the WinForm components. All of these access data, and so far, all of them use their own connections.

I was thinking about creating a ref to my data access class in each project that needs data. I would also include a Connection property that, if populated with an open connection, would be used so that in most cases, I'd only ever have one connection to the data source. If the connection property has not been populated, then the class would establish it's own connection using the data access class.

Any thoughts on this?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform