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. LINQ Create Table?!!

LINQ Create Table?!!

Scheduled Pinned Locked Moved LINQ
csharpdatabaselinqxmlquestion
1 Posts 1 Posters 2 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.
  • J Offline
    J Offline
    Jammer 0
    wrote on last edited by
    #1

    Hi, I have designed a database in SQLCE for my app. I've also generated the dbml files from that to code against. All working great so far. The only thing I'm confused on at the moment is creating new tables of the same structure as one already defined. Obviously any tables created 'live' by users will exist outside of the defined LINQ datacontext (as defined in the class build by SQLMetal. I've found a few things related to using System.Reflection to get around this and as I understand it lINQ can drop a database and rebuild it based on the dbml/xml/datacontext but can it easily create a new table of the same structure as one defined in the datacontext? Cheers,

    Jammer Going where everyone here has gone before! :) My Blog

    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