var a = _context.A.Include(e => e.R)
.Where(e => e.Name.Contains("name"))
.Skip(0)
.Take(150)
.ToList();
Error is pointing to this line. I don't use bytes. Someone can find error cause?
var a = _context.A.Include(e => e.R)
.Where(e => e.Name.Contains("name"))
.Skip(0)
.Take(150)
.ToList();
Error is pointing to this line. I don't use bytes. Someone can find error cause?
You have mismatched data types in your Model. The table R or A has a column with type byte, and you have defined your entity model with int.
In case if you need to have different types and behavior in the application, it is better to have the Entity Model separate from the Model definition in your project.
You could use automapping libraries such as https://github.com/AutoMapper/AutoMapper that help you convert easier between models.
By the way, this link below could help you to find more what is the difference between Entity and Model.