locked
My Table maping do not shows my Entities ?? RRS feed

  • Question

  • Dear all,

    I have cretate a simple Model in visual studio by using model first approach. After creating my entities an compile my project I get an error saying that no mapping has been done. So far it is correct. Then when I open the table mapping view in order to add Entities for beeing map, in the Add a Table list box field I can see only <empty> !!!

    My created entities are not shown in the list ?

    I have try to restart visul studio with no help.

    Any idea what is wrong ?

    I have notice similar behaviour when I add new properties to an entities sometimes the new properties is not refresh from the table mapping


    Your knowledge is enhanced by that of others.
    Monday, November 28, 2011 10:22 PM

Answers

  • Hi Serge,

    You should right click the designer--->Generate Database from Model---> Generate edmx.sql. Rebuilt your project, you will find it works.

    The reason for this is there is not SSDL mapping to CSDL in edmx.

    Have a nice day.


    Alan Chen[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, November 29, 2011 5:17 AM

All replies

  • Hi Serge,

    You should right click the designer--->Generate Database from Model---> Generate edmx.sql. Rebuilt your project, you will find it works.

    The reason for this is there is not SSDL mapping to CSDL in edmx.

    Have a nice day.


    Alan Chen[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, November 29, 2011 5:17 AM
  • Thnaks
    Your knowledge is enhanced by that of others.
    Tuesday, November 29, 2011 7:44 AM