Hello all,
I've done ASP.NET apps using a multi-tier approach but never anything with Win apps. After some searching online I'm not finding much info to building DAL's for Win Apps.
I'm wondering what the concepts are to creating a Windows DAL (by the way I'm using SQL Express). This is a single user app with a local database. I'm also logging events to the database, usually about 500 events a day. Here are some of the questions I have?
Could I use the same concepts as I do in WebApps? (Fill my objects and close the connection)
Should I be doing more persistance in my DAL, like filling datatables?
Should I close connections after every read from the Database, or should I establish a connection as long as I can?
I know there are probably many approachs and no correct way but I would like to get some feedback on what works best for you.
Thanks again,
I've done ASP.NET apps using a multi-tier approach but never anything with Win apps. After some searching online I'm not finding much info to building DAL's for Win Apps.
I'm wondering what the concepts are to creating a Windows DAL (by the way I'm using SQL Express). This is a single user app with a local database. I'm also logging events to the database, usually about 500 events a day. Here are some of the questions I have?
Could I use the same concepts as I do in WebApps? (Fill my objects and close the connection)
Should I be doing more persistance in my DAL, like filling datatables?
Should I close connections after every read from the Database, or should I establish a connection as long as I can?
I know there are probably many approachs and no correct way but I would like to get some feedback on what works best for you.
Thanks again,