Sharing a DBML file across WebApplications
-
Hi I have a dbml file(using Linqtosql) in one of my WebApplication written in Asp.net and C#. I want to access the same dbml file in my other WebApplication I tried copying and pasting the dbml file to this new solutions,but it didnt work.I am getting the message "Source files for this operation cannot be found in this solution Any thoughts??????????
-
Hi I have a dbml file(using Linqtosql) in one of my WebApplication written in Asp.net and C#. I want to access the same dbml file in my other WebApplication I tried copying and pasting the dbml file to this new solutions,but it didnt work.I am getting the message "Source files for this operation cannot be found in this solution Any thoughts??????????
preetyraheja wrote:
Any thoughts??????????
Yup. Separate the code so that it runs in a different tier. Make this a DLL in its own right, and you are good to go. BTW - you can convert your L2S datacontext to run as WCF, so you could just import the service references into your application.
Deja View - the feeling that you've seen this post before.