I have this MyEntity table in the database:
The data inside MyEntity is the following:
The EF Core entity is the following:
public class MyEntity
{
public int Id { get; set; }
public int MyInt { get; set; }
}
I am getting an exception:
System.Data.SqlTypes.SqlNullValueException: 'Data is Null. This method or property cannot be called on Null values.'
when trying to load the MyEntity from the DbContext:
var myEntities = dbContext.Set<MyEntity>.ToList();
What am I doing wrong?

