I am just starting to learn a bit about the entity framework and don\'t have much experience with ORM\'s.
In my little app I have one table, this sql server table ha
I think for the tinyint
you will have to make a partial class and use a separate field that appropriately read/writes to that field. However the framework will correctly interpret bit
fields as boolean
.
You could try something like below as the partial..
public partial class MyItem
{
public bool FlagBool
{
get { return Flag == 1; }
set { Flag = value ? 1 : 0; }
}
}
You could change the datatype of MyFlag
to bit
in the database.