Hi,
I'm coming from a VB6 background with a few years' layoff from programming. Now trying to get my head around .NET.
I'm writing a logical 3 tier forms app with all components(pres, bl, dal) residing on my client machine. I'm connecting to SQL server.
I'm struggling to understand how to get a connectionstring to my DAL and keep it there. I have no object references I persist to the DAL (perhaps that's my problem) so can't store it in there. My alternative seems to be to pass the connection string from the client through the BL, to the DL at every database call which seems a little clunky. In the past I would have persisted the connection object but with connection pooling this seems the wrong thing to do.
Can anyone suggest a sensible architecture for accomplishing what I'm trying to do?
Thanks,
Andy
I'm coming from a VB6 background with a few years' layoff from programming. Now trying to get my head around .NET.
I'm writing a logical 3 tier forms app with all components(pres, bl, dal) residing on my client machine. I'm connecting to SQL server.
I'm struggling to understand how to get a connectionstring to my DAL and keep it there. I have no object references I persist to the DAL (perhaps that's my problem) so can't store it in there. My alternative seems to be to pass the connection string from the client through the BL, to the DL at every database call which seems a little clunky. In the past I would have persisted the connection object but with connection pooling this seems the wrong thing to do.
Can anyone suggest a sensible architecture for accomplishing what I'm trying to do?
Thanks,
Andy