Thanks for your response Shawn,
As for the connectionstrin g name it is generated by the AppSettingBase
class's naming convention so as to avoid name clash when deploying to
target application(sin ce the client app could use many other components
.....). Also, if you do want to change the TableAdatper to use a customized
connection string , you can find the underlying code about the connection
intilization of the TableAdapter in the DataSet.Desiger .cs file which is
genernated by IDE, but we do not recommend this since IDE manage these code
and our customization could be override by IDE when performing some changes
through DESIGN TIME view....
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Message-ID: <fc************ *************@m snews.microsoft .com>
| From: Shawn Wildermuth <sw*********@ad oguy.com>
| Subject: RE: Misunderstandin g ConnectionStrin gs?
| References: <gB************ **@TK2MSFTNGXA0 2.phx.gbl>
| MIME-Version: 1.0
| Content-Transfer-Encoding: 8bit
| Content-Type: text/plain; charset=iso-8859-1; format=flowed
| X-Newsreader: JetBrains Omea Reader 671.6
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| Date: Mon, 09 Jan 2006 18:39:33 -0800
| NNTP-Posting-Host: c-71-56-111-8.hsd1.ga.comca st.net 71.56.111.8
| Lines: 1
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3696 70
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hello Steven Cheng[MSFT],
|
| Please see my reply to Sergey. Is there a way to tell the app to use a
shorter
| connection string name? We only have one so naming it with the entire
setting
| container is a waste of space and mindshare.
|
| Shawn Wildermuth
| C# MVP, Author and Speaker
|
http://adoguy.com
|
| > Thanks for Sergey's inputs.
| >
| > Hi Shawn,
| >
| > As Sergey has mentioned, when we create the TableAdapter(da taset) in a
| > class library project, the connection string setting is retrieved from
| > the Application Settings collection defined there. And actually the
| > application settings collection is persisted in app.config file... So
| > when we use the class library assembly in a end client application
| > (winform or asp.net), we can override those settings in teh
| > application's config file (app.config or web.config...). If we don't
| > override, they use those default values defined in class library...
| >
| > Hope helps. Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| > Get Secure!
www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| > --------------------
| > | Thread-Topic: Misunderstandin g ConnectionStrin gs?
| > | thread-index: AcYVe1HDeeq1cHE lRLq4Owmrb9gwfA ==
| > | X-WBNR-Posting-Host: 202.7.176.134
| > | From: "=?Utf-8?B?U2VyZ2V5IFB vYmVyZXpvdnNraX k=?="
| > <Se************ *****@discussio ns.microsoft.co m>
| > | References: <fc************ *************@m snews.microsoft .com>
| > | Subject: RE: Misunderstandin g ConnectionStrin gs?
| > | Date: Mon, 9 Jan 2006 16:18:02 -0800
| > | Lines: 20
| > | Message-ID: <29************ *************** *******@microso ft.com>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| > | NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| > | Path:
| > TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTNGXA03.ph x.gbl
| > | Xref: TK2MSFTNGXA02.p hx.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:3696 53
| > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| > |
| > | As I undestand, your TDS's are in a dll project? Just a thought -
| > you can
| > try
| > | to remove dllname.config file from the bin folder - I think then
| > ASP.Net
| > will
| > | use web.config...
| > |
| > | "Shawn Wildermuth" wrote:
| > |
| > | > I have a web project whose web.config has a ConnectionStrin g
| > setup. I
| > have
| > | > a second assembly with my Typed DataSets. The designer has
| > created an
| > App.config
| > | > file with a connection string in it for the designer to use. The
| > web
| > project
| > | > referecnes the data assembly with the TDS's in it. When I deploy
| > this
| > project,
| > | > my Typed DataSets are still using the data in the app.config, and
| > not
| > the
| > | > one in the web.config. Any idea on how to tell it to get the
| > ConnectionStrin g
| > | > data from web.config and ignore the app.config?
| > | >
| > | > Shawn Wildermuth
| > | > C# MVP, Author and Speaker
| > | >
http://adoguy.com
| > | >
| > | >
| > | >
| > |
|
|