Is there anyway to do this :
I have a table called FOO and I want to auto cast a char(10) field in SQL to a bool in c# without creating an additional override fake GET property to get the bool CAST of the SQL field. Is there a way using like a custom attribute over the IsPremium c# field or a way using FluentAPI?
TABLE FOO
{
INT Id;
CHAR(10) IsPremium;
}
and I want my c# entity model to be like this
class FOO
{
int Id { get;set;}
bool IsPremium { get;set;}
}