In a C# 2010 desktop I have one solution file that have 4 separate project folders. In two of the project folders I need to access two of the same tables using linq to sql. I do not know how to make each project folder be aware of the two tables. Thus I embedded basically the same *.dbml files within each separate project folder.
I do not think what I did is the best solution. Due to this fact, I have the following questions:
1. Is there some kind of a way that each project folder can have access to the same *.dbml file? If you can you tell me how to accomplish this goal?
2. One of the project folders is a proxy file. Is it a good or bad idea to have a proxy class (project) folder update a *.dbml? Can you tell how how to accomplish my goal?
Loading
Sukesh MarlaPosted Sep 9, 2012, 11:20 PM
http://www.c-sharpcorner.com/UploadFile/SukeshMarla/3-tier-architecture-using-Asp-Net/
There you can see example of class library
Check this is correct answer if it helped.
Sie StePosted Sep 9, 2012, 3:04 PM
Sukesh MarlaPosted Sep 9, 2012, 1:11 AM
Create a class Library Project in C# and Put your dbml file inside that.
Now right click both your projects and add reference and select the project just created.
Let me knw if have any confusion.
Check this is correct answer if it helped.