locked
can't found type reference with entity framework RRS feed

  • Question

  • Hi, i tried to create a crud method wich save  information about sending email,

    i used model first to create my sqlserver database,

    the problem is when i generate database from model, i didn't get the mapping of all of the fields : and the foreign key doesn't exist on the list

    and when i tried to add (using System.Data.Objects;

                                           ...Entity.TypeReference.EntityKey ....) i didn't found the property  "TypeReference"

    Sunday, May 27, 2012 12:50 PM

Answers

  • Hi DevDOTNETns,

    Welcome to MSDN Forum.

    Could you please clarify the steps how you generate the database from the model? Here's a tutorial about model first, please refer here. I'd appreciate if you can post the steps of yous here, and I will help you to find the root cause. :)

    Best Regards


    Allen Li [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Allen_MSDN Tuesday, June 5, 2012 2:32 AM
    Monday, May 28, 2012 3:11 AM

All replies

  • Hi DevDOTNETns,

    Welcome to MSDN Forum.

    Could you please clarify the steps how you generate the database from the model? Here's a tutorial about model first, please refer here. I'd appreciate if you can post the steps of yous here, and I will help you to find the root cause. :)

    Best Regards


    Allen Li [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Allen_MSDN Tuesday, June 5, 2012 2:32 AM
    Monday, May 28, 2012 3:11 AM
  • Hi DevDOTNETns,

    Have you solved the issue? I look forward to hearing from you. If you need further help, please feel free to let me know. :)

    Best Regards


    Allen Li [MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, May 30, 2012 2:48 AM