I have a table column defined like this:
ENTRY_STATUS NUMBER(2, 0)
And in my EntityFramework class the respective field is defined like this:
[Column("ENTRY_STATUS")]
public int Status { get; set; }
When checking the value to get an entry it works perfectly fine:
var order = testDbContext.Orders.FirstOrDefault(o => o.Status > 1);
But when I check the order entity after this statement it is always zero:
if (order != null)
{
if (order.Status == 3) //Always Zero!!!
{ //Do something...
}
}
What went wrong here with my definitions? How do I fix this?