Unable to Retrieve Metadata

后端 未结 6 2192
傲寒
傲寒 2020-11-29 10:01

MVC4 + Entity Framework 4.4 + MySql + POCO/Code First

I\'m setting up the above configuration .. here are my classes:

namespace BTD.         


        
6条回答
  •  Happy的楠姐
    2020-11-29 10:51

    Please try using the

    System.ComponentModel.DataAnnotations

    namespace along with the [Key] attribute on the EDM class members.

    It worked for me.

提交回复
热议问题