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. How to add data into a table of relational

How to add data into a table of relational

Scheduled Pinned Locked Moved LINQ
tutorialquestion
2 Posts 2 Posters 0 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
    jason_mf
    wrote on last edited by
    #1

    I have 3 tables : "user", "purview", "user_purview". "user" associated with "purview" through "user_purview". now, I will add purview (one or more) to user. I use LinqToSql. I find out user_purview mapping class has properties: User, Purview, UserId, PurviewId. Do I just need to set the value of userId and purviewid, then submitchanges is ok?

    N 1 Reply Last reply
    0
    • J jason_mf

      I have 3 tables : "user", "purview", "user_purview". "user" associated with "purview" through "user_purview". now, I will add purview (one or more) to user. I use LinqToSql. I find out user_purview mapping class has properties: User, Purview, UserId, PurviewId. Do I just need to set the value of userId and purviewid, then submitchanges is ok?

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      If userID and purviewID are primary keys for the tables then no the underlying framework will take care of it


      I know the language. I've read a book. - _Madmatt

      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