entity framework 4.1 invalid column name

后端 未结 2 1157
半阙折子戏
半阙折子戏 2020-12-09 05:43

I have two table News and NewsComments. I followed the rules of naming

structure NewsComments

public class NewsComment : BaseComment
{
    public int         


        
2条回答
  •  孤街浪徒
    2020-12-09 06:28

    Your SQL does not have an underscore between user and id.

    Update EDMX from database (via right click menu) and check the mappings.

提交回复
热议问题