locked
Mapping issue in EDMX, Model First Approach RRS feed

  • Question

  • User-240513752 posted

    I am facing issue while following the model first approach, I am following the youtube vide "https://www.youtube.com/watch?v=1xHInJgta_U",

    I am able to resolve it by updating the model by database..after deleting but then it will become Model from DB, which I was not intended to follow

    but i hope it is a bug in EDMX , I am using .net framework , not core.

    Wednesday, March 25, 2020 12:38 PM

Answers

  • User-240513752 posted

    I have no issue now, I developed the project from scratch again, in that i create the model and their associations between the tables.. later generate DB from model, and picked the different server of database.... now it is working.. i think there was problem in my sql server which i was using before,,, may be some authorization..... ie it was local DB...

    well now working fine.

    thank you for the information if I delete the object from the DB and then update edmx....

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 25, 2020 3:20 PM

All replies

  • User475983607 posted

    Model first allow you to create models using the a UI tool which is simply editing the EDMX file.  Sounds like you deleted an object from the database then updated the EDMX file.  There's nothing wrong with that, are you receiving an error?   Can you clarify the problem you are trying to solve?

    Wednesday, March 25, 2020 1:31 PM
  • User-240513752 posted

    I have no issue now, I developed the project from scratch again, in that i create the model and their associations between the tables.. later generate DB from model, and picked the different server of database.... now it is working.. i think there was problem in my sql server which i was using before,,, may be some authorization..... ie it was local DB...

    well now working fine.

    thank you for the information if I delete the object from the DB and then update edmx....

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 25, 2020 3:20 PM