mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-08 00:30:03 -04:00
ad71f4ce96
This is the implementation to resolve #4424 # Description of Changes * Add support for `IEnumerable<T>` as a valid C# View return type in codegen, so view implementations can return query results without forcing `ToList()`. The generator now detects `IEnumerable<T>`, serializes it via the list serializer. * Snapshots have been updated with a test to confirm that `IEnumerable<T>` rather than checking it is unsupported (which we had added when removing support during the transition away from `Query<T>` usage. * Refreshes docs/examples to reflect the new supported signature. # API and ABI breaking changes No breaking changes. This is additive support for an existing .NET interface. # Expected complexity level and risk 2 - Low # Testing - [X] Rebuilt CLI locally, ran regression tests, and `dotnet tests` in C# module bindings. - [X] Tested updated docs code snippets to ensure they resolve in an IDE and publish. --------- Signed-off-by: Ryan <r.ekhoff@clockworklabs.io>
SpacetimeDB C# SDK
Overview
This repository contains the C# and Unity client SDKs for SpacetimeDB. These SDKs contain all the tools you need to build native clients for SpacetimeDB modules using C#.
Documentation
The Unity SDK uses the same code as the C# SDK. You can find the documentation for the C# SDK in the C# SDK Reference. For a guided tutorial, see the C# SDK Quickstart.
There is also a comprehensive Unity tutorial/demo available:
- Unity Tutorial Doc
- Unity Demo Repo
Internal developer documentation
See DEVELOP.md.