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. (The Member is defined more then once)

(The Member is defined more then once)

Scheduled Pinned Locked Moved LINQ
csharplinqhelp
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.
  • U Offline
    U Offline
    u2envy12
    wrote on last edited by
    #1

    I have two tables in a DataContext class. Table one Department DepartmentID PRIMARY KEY OrganizationID DepartmentName Table Two UserDeparment DepartmentID UserID COMPOSITE KEY My linq : var rsUserDep = (from usrdep in usrDptCtx.UserDepartments join dep in usrDptCtx.Departments on usrdep.DepartmentID equals dep.DepartmentID where usrdep.UserID == userID & dep.OrganizationID == 2 select new { usrdep.UserID, usrdep.DepartmentID }); On usrdep.DepartmentID I get an error......: (The Member is defined more then once) Ambiguity between UserDepartment.DepartmentID And UserDepartment.DepartmentID

    J 1 Reply Last reply
    0
    • U u2envy12

      I have two tables in a DataContext class. Table one Department DepartmentID PRIMARY KEY OrganizationID DepartmentName Table Two UserDeparment DepartmentID UserID COMPOSITE KEY My linq : var rsUserDep = (from usrdep in usrDptCtx.UserDepartments join dep in usrDptCtx.Departments on usrdep.DepartmentID equals dep.DepartmentID where usrdep.UserID == userID & dep.OrganizationID == 2 select new { usrdep.UserID, usrdep.DepartmentID }); On usrdep.DepartmentID I get an error......: (The Member is defined more then once) Ambiguity between UserDepartment.DepartmentID And UserDepartment.DepartmentID

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Perhaps this will help: Linq to SQL - "This member is defined more than once".

      Tech, life, family, faith: Give me a visit. The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      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