.Net Core project development of Errors, Exceptions

 

 This error is when the connection to the database, does not find the corresponding table, 

namespace TodoApi.Models
{
    public class TodoContext : DbContext
    {
        public TodoContext(DbContextOptions<TodoContext> options)
            : base(options)
        {
        }

        public DbSet <ABBDevice> ABBDevice { GET ; the SET ;} // this name, and the database must be consistent with the table name, to find this table
    }
}

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 Numeric types is not uniform, there may be defined in the database ID of the total Int, the code used in the Long, check the data type, consistent

 

Guess you like

Origin www.cnblogs.com/gloryhope/p/11697551.html