CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2008 Tags:
Item Type: NewsGroup Date Entered: 11/30/2007 4:10:47 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 38 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
TroyGoode
Asp.Net User
LINQ in a Class Library11/30/2007 4:10:47 PM

0/0

I am developing a website in VS 2008 and have split the solution into two projects: a web site project and a class library (for data access and business logic). I have added a .dbml file for LINQ support to the class library and everything is working great, my question is:

 How do I get the LINQ DataContext that is generated by the .dbml to load its connection string from the web site's web.config rather than the class library's app.config?

Mikhail Arkhipo
Asp.Net User
Re: LINQ in a Class Library12/1/2007 12:47:07 AM

0/0

Since class library does not know if it runs in a Web site environment you have to pass some context to it. Perhaps costruction of the context at runtime from strings in web.config may help: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1166000&SiteID=1
Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
Arial12
Asp.Net User
Re: LINQ in a Class Library12/1/2007 12:56:31 AM

0/0

Sorry to disturb this blog but I am very new can not find how can I post my questions?

 Can some one help to find the place on this forum to post my own questions to get some help from you experts?

 

Thank You,

Mikhail Arkhipo
Asp.Net User
Re: LINQ in a Class Library12/1/2007 3:32:22 AM

0/0

There are multiple forums at this site. Pick the one that your question is about and post there.


Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET for SQL Server: High Performance Data Access for Web Developers Authors: Brennan Stehling, Pages: 408, Published: 2007
Professional LINQ Authors: Scott Klein, Pages: 379, Published: 2007
Beginning VB 2008: From Novice to Professional Authors: Christian Gross, Pages: 450, Published: 2008
Pro C# 2008 and the .NET 3.5 Platform Authors: Andrew Troelsen, Pages: 1370, Published: 2007
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Beginning VB 2005 Databases: From Novice to Professional Authors: James Huddleston, Syed Fahad Gilani, Ranga Raghuram, Jacob Hammer Pedersen, Jon Reid, Pages: 492, Published: 2007
Visual Basic 2008 For Dummies Authors: Bill Sempf, Pages: 360, Published: 2008
LINQ for VB 2005 Authors: Fabio Claudio Ferracchiati, Pages: 176, Published: 2007
Professional Visual Studio 2005 Authors: Andrew Parsons, Nick Randolph, Pages: 869, Published: 2006

Web:
Building and using a LINQ for SQL Class Library with ASP.NET 2.0 ... Step 1: Create a New LINQ Enabled Class Library. Choose File->New Project within ... NET UI pages against our LINQ class library and associated data models. ...
Building and Using a LINQ for SQL Class Library with ASP.NET 2.0 ... In this article Scott explores how to build and use a LINQ for SQL Class Library using ASP.NET 2.0.
LINQ Dynamic Query library in class library project nightmare ... LINQ Dynamic Query library in class library project nightmare Thread Starter: SteveHobbs Started: 31 Mar 2008 6:45 AM UTC Replies: 1 ...
LINQ in a Class Library - ASP.NET Forums I have added a .dbml file for LINQ support to the class library and everything is working great, my question is:. How do I get the LINQ DataContext that is ...
LINQ External Mapping to Class Library - Stack Overflow I think the problem you might be getting is that the assembly/class library containing your classes hasn't been loaded into memory at this stage? ...
Visual Studio 2008, class library and Linq Classes Talk about Visual Studio 2008, class library and Linq Classes. ... In the class library I have aadded a Linq to sql class and placed all ...
LINQ Dynamic Query Library in Class Library - ASP.NET Forums The references are all set up correctly and I can indeed get Linq To Sql classes working fine from the class library; it's only when I add ...
CodeGuru: Programming with LINQ to XML for Objects (LINQ to XSD) Jun 20, 2008 ... One minor drawback (for now) is that you will need to use a C# class library for the LINQ to XSD technology at the time this article was ...
LINQ Learning Guide: LINQ and Web applications Building and using a LINQ for SQL Class Library with ASP.NET 2.0 (Scott Guthrie) Having used the LINQ to SQL designer to define data models, and having been ...
Solid Code: .Net Class Library for the Roomba SCI It is a class library written in C# targeting the .Net 3.5 Framework. I have used some LINQ queries to parse out the byte array that is returned when you ...




Search This Site:










application development server problem on windows 2008 server

javascript intellisense - array support

two projects in one asp.net solution

existing project

visual studio hangs when clicking open website

system.data.entity failed to load in orcas ctp

intellisence doesn't work

homegrown code generator and vs2008 formatting question.

html formattting

avoid have x no. of developer server start up at debug

build configuration for asp.net 3.5 project

visual studio adding ";&nbsp"

buying visual studio for the first time.

masterpagefile in web.config - losing intellisense

design view freezing after upgrade of projects fix

vs2008 professional trial edition 90 days ... uninstall after 90 days and then re-install

debug --> exceptions window missing "user-unhandled"

vs2008 and vista x64 sp1 not good friends

visual web editor excrutiatingly slow and unstable

can orcas beta 1 be safely installed on a system that has vs2005 on it?

ajax extensions scriptmanager missing

system.componentmodel.win32exception: the system cannot find the path specified

trial file won't uninstall

intellisense is slow

how to make vs 2008 ide the same as vs 2005?

development server starting after upgrade vs2005->vs2008

zoom out in html design mode

layout menu - absolute and relative position

3.5 does not work by itself, right?

reportviewer questions

  Privacy | Contact Us
All Times Are GMT