Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. Sharing a DBML file across WebApplications

Sharing a DBML file across WebApplications

Scheduled Pinned Locked Moved LINQ
csharpasp-netquestiondiscussion
2 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    preetyraheja
    wrote on last edited by
    #1

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

    P 1 Reply Last reply
    0
    • P preetyraheja

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

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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.

      My blog | My articles | MoXAML PowerToys

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups