LINQ To SQL and the Web.Config ConnectionString Value

Posted by: Rick Strahls WebLog, on 07 Dec 2007 | View original | Bookmarked: 0 time(s)

I just got had by an odd behavior in the LINQ to SQL model designer when working with a LINQ to SQL Model in a separate class library project. I use LINQ to SQL in a business layer which always lives in a separate assembly and so the model does not live in the same project as the Web (or other) application I'm working on. When the model is created the DataContext has options on how the Connection is handled when you create your DataContext without specifying any parameters in the constructor - ie....

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: SQL | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2504 | Hits: 355

Similar Posts

  • Issue 50 - DotNetNuke 5 Admin Modules Access, Reset Logins, iPhone OWS more
  • Health Monitoring and ASP.NET MVC more
  • Announcing the WebsiteSpark Program more
  • Client Configuration in WCF 4.0 more
  • Intersoft Solutions Announces WebUI Studio 2009 Service Pack 1 more
  • Clean Web.Config Files (VS 2010 and .NET 4.0 Series) more
  • Using SSL in your application more
  • EasyQuery WebForms 2.5.0 - user-friendly query builder for your ASP.NET web-site more
  • Telerik Introduces Free Web Testing Framework for ASP.NET AJAX and Silverlight more
  • Dynamic Languages: A Separation of Concerns more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD