I'm using Blazor Wasm with a SQLite clientdatabase. Like here (https://github.com/dotnetnoobie/BlazorAppSqlite)
public DbSet<Test> Tests { get; set; } = default!;
.....
public class Test
{
[Key]
public int Id { get; set; }
public double? NullableDoubleValue { get; set; }
}
......
var test = new Test();
test.Id = 1;
test.NullableDoubleValue = 1;
_appState.ClientSideDbContext.Tests.Add(test);
await _appState.ClientSideDbContext.SaveChangesAsync();
When the last line is executed, the Blazor app wil crash. With this error in the log: /__w/1/s/src/mono/mono/mini/aot-runtime-wasm.c:113 /__w/1/s/src/mono/mono/mini/aot-runtime-wasm.c:113 Uncaught ExitStatus
What change do I have to make to use a (nullable) double?