Ok Miguel, I agree with you about Entry Point of App but in case of if Layers are on the same machine.
But when they are different machines like WebServices (have BLL as you ask). But I think in that case we only have WSDL I think so. ? Just calling of the WebMethods.? I am not getting your this point. Muhammad Niaz Sr. Software Engineer +92 321 569 4195 From: Miguel Madero [mailto:[email protected]] Sent: Friday, January 02, 2009 7:36 PM To: [email protected] Subject: RE: Not SL related But .NET World It depends on the apps point of entry and in some sense, the physical distribution of your app. Let's think the UI it's a console app (console.exe), the user executes it and that loads other assemblies (bll.dll and dal.dll), then config file for console.exe will contain the configuration for the app including the ConnectionStrings. Something similar would happen if you have a winforms, website or wpf app and all the other layers loaded in the same process or app domain (as referenced dlls). If the layers are also split in different processes or machines, e.g. BLL is in a different WebSite (e.g. exposes as webservices) we will have a configuration for the client and another one for the BLL since each of those will have their own point of entry. Miguel A. Madero Reyes <http://www.miguelmadero.com/> www.miguelmadero.com (blog) <mailto:[email protected]> [email protected] +61 (0) 406-704-161 P "Please reconsider your environmental responsibility before printing this e-mail" The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. From: [email protected] [mailto:[email protected]] On Behalf Of Muhammad Niaz Sent: Friday, 2 January 2009 9:44 PM To: [email protected] Subject: Not SL related But .NET World Hi All, This is not SL related question, but .NET :P related. Here is the scenario. Suppose I have 4 Projects in one solution. DTOs DAL BLL UI This is a normal N Tiers App. So what is the problem here I am explaining. I call BLL method in UI Layer which internally call DAL(offcourse) but in DAL there is no App.Config, but you know its calling from UI Layer. So in UI Layer Web.Config/App.Config contains ConnectionString not in DAL. So when I call any BLL method how its pick up the UI connectionString.???????????? I know it works but how, please explain technically. Muhammad Niaz Sr. Software Engineer SigmaTec | +92 42 5887084 _____ List address: <mailto:[email protected]> [email protected] Subscribe: <mailto:[email protected]> [email protected] Unsubscribe: <mailto:[email protected]> [email protected] List FAQ: <http://www.codify.com/lists/ozsilverlight> http://www.codify.com/lists/ozsilverlight Other lists you might want to join: <http://www.codify.com/lists> http://www.codify.com/lists _____ List address: <mailto:[email protected]> [email protected] Subscribe: <mailto:[email protected]> [email protected] Unsubscribe: <mailto:[email protected]> [email protected] List FAQ: <http://www.codify.com/lists/ozsilverlight> http://www.codify.com/lists/ozsilverlight Other lists you might want to join: <http://www.codify.com/lists> http://www.codify.com/lists -------------------------------------------------------------------------------- List address: [email protected] Subscribe: [email protected] Unsubscribe: [email protected] List FAQ: http://www.codify.com/lists/ozsilverlight Other lists you might want to join: http://www.codify.com/lists
