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. seperate DTO's

seperate DTO's

Scheduled Pinned Locked Moved LINQ
csharpdatabaselinqmcp
2 Posts 2 Posters 5 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.
  • T Offline
    T Offline
    Tauseef A
    wrote on last edited by
    #1

    hi guys through linq to sql it generates all the table classed in the same class (file) and also the related method CRUd in the same file as well , is there any way that we can generate seperate class for each data table and all the table classed in a seperate library and the data base operations in another library , thansk.

    Tauseef A Khan MCP Dotnet framework 2.0.

    S 1 Reply Last reply
    0
    • T Tauseef A

      hi guys through linq to sql it generates all the table classed in the same class (file) and also the related method CRUd in the same file as well , is there any way that we can generate seperate class for each data table and all the table classed in a seperate library and the data base operations in another library , thansk.

      Tauseef A Khan MCP Dotnet framework 2.0.

      S Offline
      S Offline
      Sir Dot Net
      wrote on last edited by
      #2

      The way I used to do it w/ LINQ2SQL is to generate an interface on the table, for each table class in the datacontext. I would then manually go through each interface and convert it to a class. I'm not sure if someone has figured out how to automate this. After a year of so, I bought a commercial ORM from Mindscape called Lightspeed, it supports linq and generates the DTOs for me =)

      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