I would like to extend my class which was generated by EF from database. I tried to do it using partial class:
public partial class Users
{
public bool IsOnline { get; set; } = false;
}
I would like to populate my list of Users from database and by default set my extra property IsOnline
to false
- later this value will be changed.
The error occured when i tried to download data from DbSet. Something like:
Invalid column name "IsOnline".
Add a NotMapped attribute on your property to flag your property as not used with entity framework