Hello
I'm using Siaqodb in a Xamarin.Forms Project and have the following Error:
A Property must have UseVariable Attribute set( property:SummarizeOnStartpage of type:MyBudgetLive.AccountItem)
On this Line:
return _db.Query<AccountItem>().Where(item => item.SummarizeOnStartpage).Sum(item => item.CurrentBalance);
Item Class:
public class AccountItem
{
public int OID { get; set; }
public Guid UID { get; set; }
public DateTime Created { get; set; }
public DateTime Modified { get; set; }
public string Name { get; set; }
public string Color { get; set; }
public decimal InitialBalance { get; set; }
public decimal CurrentBalance { get; set; }
public bool IsDefaultExpense { get; set; }
public bool IsDefaultIncome { get; set; }
public bool ShowOnStartPage { get; set; }
public bool SummarizeOnStartpage { get; set; }
}
I also get the same Error on any Where Clause and any Select Clause.
Queries like First(), FirstOrDefault, ToList(), etc. are working fine.
Do you have any Idea whats wrong here?
Thank you very much