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
Describe the bug GetPlan method of empty collection throw System.InvalidOperationException : Sequence contains no elements.
Code to Reproduce
public class StateModel
{
[BsonId]
public int Id { get; set; }
}
[Fact]
public void MyTest()
{
using (var db = new LiteDatabase(":memory:"))
{
var col = db.GetCollection<StateModel>("col");
var query = col.Query();
var plan = query.GetPlan();
}
}
Expected behavior
Exception is not thrown.
The text was updated successfully, but these errors were encountered:
Version
5.0.8
Describe the bug
GetPlan
method of empty collection throw System.InvalidOperationException : Sequence contains no elements.Code to Reproduce
Expected behavior
Exception is not thrown.
The text was updated successfully, but these errors were encountered: