AppDbContext里数据表的上下文在执行时找不到
“public DbSet<Student> Students { get; set; }”
我在数据仓库里有这样一句话:return _context.Students;
在写代码的时候可以找到这个Students,编译也可以通过,但是在运行的时候会提示:对象名 Students无效。
“public DbSet<Student> Students { get; set; }”
我在数据仓库里有这样一句话:return _context.Students;
在写代码的时候可以找到这个Students,编译也可以通过,但是在运行的时候会提示:对象名 Students无效。
2021-07-03
举报