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....