Re: Typed DataSets in VS2005
- From: "Champika Nirosh" <test@xxxxxx>
- Date: Thu, 29 Mar 2007 16:53:57 +0530
VSS 2005 support auto generating the dataaccess layer .. and in that case
you are free to change the code where it hardcode the connection string so
that it will read it from a config file (obviously you have to change the
code again if you have to create/ edit the dataset again.
In my view point the automatically generated code is very good if you are
heading toward a quick concept demo or a working prototype.. but if you are
looking to develop a real extensible large-scale system, then I rather
advice you to have your own data access layer, indeed you may have some
assistance from the Data access Applcation Blocks or enterprise library.
There you will get that chance of developing a flexible dataaccess layer.. I
am telling this with my experience and if you go with the auto geneated code
you will at times drive in to bottleneck of your code..
Nirosh.
"Peter Bradley" <pbradley@xxxxxxxxxx> wrote in message
news:eLioYLfcHHA.2404@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,
This post is sort of tangentially related to my earlier posts on
configuration files for DLLs.
Does anyone know how to create typed DataSets using VS2005's new DataSet
designer, but with the ability to configure the connection string via a
config file? The designer seems to hard-code the connection string into
the dataset itself, which just can't be right.
The typed DataSets created by VS2005 comes with a dll.config file that
looks as though it's trying to do something like that, and which is put
with the executable at compile time, but altering the connection string in
there doesn't appear to have any effect. We've seen lots of people asking
this question, but haven't found anyone answering it yet.
Thanks in advance
Peter
.
- Follow-Ups:
- Re: Typed DataSets in VS2005
- From: Peter Bradley
- Re: Typed DataSets in VS2005
- References:
- Typed DataSets in VS2005
- From: Peter Bradley
- Typed DataSets in VS2005
- Prev by Date: Object null but read as empty?
- Next by Date: Anyone understood what InnerExceptions are?
- Previous by thread: Typed DataSets in VS2005
- Next by thread: Re: Typed DataSets in VS2005
- Index(es):
Relevant Pages
|