Skip to content

Commit 30ef1cd

Browse files
committed
try int
1 parent 999ed26 commit 30ef1cd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

E2eTestWebApp/TestPages/WhereTestPage.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ private class Record
1919
[MagicPrimaryKey("Id")]
2020
public int Id { get; set; }
2121

22-
public string? StringField { get; set; }
22+
public int Int32Field { get; set; }
2323
}
2424

2525
public async Task<string> Where1()
@@ -30,23 +30,23 @@ public async Task<string> Where1()
3030
Version = 1,
3131
StoreSchemas = [SchemaHelper.GetStoreSchema(typeof(Record))]
3232
});
33-
await database.AddAsync(new Record()
33+
await database.AddAsync<Record, int>(new Record()
3434
{
3535
Id = 1,
36-
StringField = "This is a string."
36+
Int32Field = 1
3737
});
38-
await database.AddAsync(new Record()
38+
await database.AddAsync<Record, int>(new Record()
3939
{
4040
Id = 2,
41-
StringField = "Is this a string?"
41+
Int32Field = 2
4242
});
43-
await database.AddAsync(new Record()
43+
await database.AddAsync<Record, int>(new Record()
4444
{
4545
Id = 3,
46-
StringField = "Is this a string?"
46+
Int32Field = 3
4747
});
4848
var result = await database
49-
.Where<Record>(x => x.StringField == "Is this a string?")
49+
.Where<Record>(x => x.Int32Field < 2)
5050
.ToListAsync();
5151
return JsonSerializer.Serialize(result.Select(x => x.Id));
5252
}

0 commit comments

Comments
 (0)