You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For those running into this issue, it can be solved with a value converter on double/decimal.
classDoubleConverter:ValueConverter<double,string>{publicDoubleConverter():base(Serialize,Deserialize,null){}privatestaticExpression<Func<string,double>>Deserialize=> x =>double.Parse(x);privatestaticExpression<Func<double,string>>Serialize=> x =>x.ToString();}
Hi and thanks for the example.
I have simply updated the model so that price is now a double, as below. However the app simply crashes. Any ideas?
Cheers
public sealed class Car
{
public int Id { get; set; }
public string Brand { get; set; }
public double Price { get; set; }
}
The text was updated successfully, but these errors were encountered: