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
When attempting to create a table that uses Identity as an index of a BTree like:
#[index(btree)]
pub identity: Identity,
Generated code in C# will throw the error: The type 'SpacetimeDB.Identity' must be convertible to 'System.IComparable<SpacetimeDB.Identity>' in order to use it as parameter 'Column' in the generic class 'SpacetimeDB.RemoteTableHandle<EventContext,Row>.BTreeIndexBase<Column>'
This is because SpacetimeDB.Identity does not implement the IComparable interface:
Issue:
When attempting to create a table that uses
Identity
as an index of a BTree like:Generated code in C# will throw the error:
The type 'SpacetimeDB.Identity' must be convertible to 'System.IComparable<SpacetimeDB.Identity>' in order to use it as parameter 'Column' in the generic class 'SpacetimeDB.RemoteTableHandle<EventContext,Row>.BTreeIndexBase<Column>'
This is because
SpacetimeDB.Identity
does not implement theIComparable
interface:SpacetimeDB/crates/bindings-csharp/BSATN.Runtime/Builtins.cs
Line 204 in 7cb509c
While we are at it, it makes sense to implement
IComparable
forConnectionId
as well:SpacetimeDB/crates/bindings-csharp/BSATN.Runtime/Builtins.cs
Line 121 in 7cb509c
The text was updated successfully, but these errors were encountered: