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. .NET (Core and Framework)
  4. Invalid object name 'dbo.CaseAssignedToInvestigators1'

Invalid object name 'dbo.CaseAssignedToInvestigators1'

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpannouncement
1 Posts 1 Posters 3 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.
  • S Offline
    S Offline
    simpledeveloper
    wrote on last edited by
    #1

    Hi I am trying to create an object using Entity Framework Code First, but unfortunately its creating the object name incorrectly, actually let me explain the whole process how I did it, actually I wanted to add a Auto generating PK, I have renamed the existing Table as CaseAssignedToInvestigators1, then I generated new table with all Columns and keys properly - then I migrated data from the table CaseAssignedToInvestigators1 into new table CaseAssignedToInvestigators, but how did Entity Framework Code First Generated the Tables I don't know but when I am trying to insert or update the records, its giving me exception as below: Invalid object name 'dbo.CaseAssignedToInvestigators1' Any help please - thanks in advance.

    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