public partial class Operation {
private string statusText = "Active";
[FieldAlias("statusText")]
public string StatusText
{
get { return this.statusText; }
}
}
This property does not need to exist into database table - it's defined and used only in .Net.
The Exception: "Identifier 'StatusText' is not a parameter or variable or field of 'Operations.DAL.Operation'. If 'StatusText' is a property please add the FieldAlias or Storage attribute to it or declare it as a field's alia" occurs when I try to run following code:
var result = _context.GetAll<Operation>().Where(x => x.StatusText == "Active").ToList();
I tried to add Storage and FieldAlias attribute as well, but exception still occurs.
Can I have an extened property in partial class without having to exist it in the database table?