8 Replies - 3283 Views - Last Post: 05 September 2014 - 01:52 PM Rate Topic: -----

#1 RozenKristal   User is offline

  • D.I.C Regular

Reputation: 45
  • View blog
  • Posts: 381
  • Joined: 29-September 12

Entity Framework generate from database give me blank .edmx diagram

Posted 27 August 2014 - 08:22 PM

Yes, exactly, and I have been successfully creating EF Model before from the same database.... I have no idea why is it acting up now... I did check SO and they seems not to have a solution for it also....
Is This A Good Question/Topic? 0
  • +

Replies To: Entity Framework generate from database give me blank .edmx diagram

#2 andrewsw   User is offline

  • palpable absurdity
  • member icon

Reputation: 6905
  • View blog
  • Posts: 28,565
  • Joined: 12-December 12

Re: Entity Framework generate from database give me blank .edmx diagram

Posted 27 August 2014 - 11:05 PM

Please describe your question clearly, and the steps that you took that might reproduce the problem. The title is just a title, you should not use it to try and write the actual question.
Was This Post Helpful? 0
  • +
  • -

#3 RozenKristal   User is offline

  • D.I.C Regular

Reputation: 45
  • View blog
  • Posts: 381
  • Joined: 29-September 12

Re: Entity Framework generate from database give me blank .edmx diagram

Posted 28 August 2014 - 04:30 AM

Sorry about that. So I have been using this same database for the last few days and it resides on my localhost, everytime I can create an entity using database first, they are all successful. Today I tried to do the same, but for some reason, I keep getting empty .emdx model diagram.
I checked with SO but there is no good ideas that I could try: http://stackoverflow...ates-empty-edmx
Was This Post Helpful? 0
  • +
  • -

#4 Curtis Rutland   User is offline

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 5106
  • View blog
  • Posts: 9,283
  • Joined: 08-June 10

Re: Entity Framework generate from database give me blank .edmx diagram

Posted 28 August 2014 - 09:54 AM

This might take a while, but it should help you narrow down which object is the problem. Start by adding just one of your tables/views/procedures, then allowing it to be generated. Then update the model with another object. As soon as you add one and it goes blank, you know the problem is with that object.
Was This Post Helpful? 0
  • +
  • -

#5 RozenKristal   User is offline

  • D.I.C Regular

Reputation: 45
  • View blog
  • Posts: 381
  • Joined: 29-September 12

Re: Entity Framework generate from database give me blank .edmx diagram

Posted 28 August 2014 - 06:55 PM

View PostCurtis Rutland, on 28 August 2014 - 09:54 AM, said:

This might take a while, but it should help you narrow down which object is the problem. Start by adding just one of your tables/views/procedures, then allowing it to be generated. Then update the model with another object. As soon as you add one and it goes blank, you know the problem is with that object.



I couldn't even see the tables/views/procs in the toolbox... I used this same database in the past and it worked fine before...
Was This Post Helpful? 0
  • +
  • -

#6 RozenKristal   User is offline

  • D.I.C Regular

Reputation: 45
  • View blog
  • Posts: 381
  • Joined: 29-September 12

Re: Entity Framework generate from database give me blank .edmx diagram

Posted 28 August 2014 - 07:05 PM

Okay, so looking at the output of the EF wizard, it say cant generate model because of view user_constraints has errors... ORA 04063. Anyone has any idea how this even happen...? I avoid adding the views in the EF also...
Was This Post Helpful? 0
  • +
  • -

#7 Skydiver   User is offline

  • Code herder
  • member icon

Reputation: 7447
  • View blog
  • Posts: 25,086
  • Joined: 05-May 12

Re: Entity Framework generate from database give me blank .edmx diagram

Posted 29 August 2014 - 03:09 AM

You could check your source control to see what the changes to the database schema and metadata have been. Check out the version of the database at the date that worked, and compare with your current version.
Was This Post Helpful? 0
  • +
  • -

#8 RozenKristal   User is offline

  • D.I.C Regular

Reputation: 45
  • View blog
  • Posts: 381
  • Joined: 29-September 12

Re: Entity Framework generate from database give me blank .edmx diagram

Posted 29 August 2014 - 06:42 AM

I actually added some tables my colleague handed me, that was when this thing become a problem. Before that, everything was working fine. What strange is that she said she just create tables like usual.
Was This Post Helpful? 0
  • +
  • -

#9 RozenKristal   User is offline

  • D.I.C Regular

Reputation: 45
  • View blog
  • Posts: 381
  • Joined: 29-September 12

Re: Entity Framework generate from database give me blank .edmx diagram

Posted 05 September 2014 - 01:52 PM

Problem solved. It was the FK constraint that caused the whole mess.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1