From 3f73abdd9fd3de53ae7edaf4fd39ce36ce255ce7 Mon Sep 17 00:00:00 2001 From: John Detter <4099508+jdetter@users.noreply.github.com> Date: Fri, 16 Jan 2026 02:33:44 -0600 Subject: [PATCH] Update Lib.cs Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com> --- templates/basic-c-sharp/spacetimedb/Lib.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/basic-c-sharp/spacetimedb/Lib.cs b/templates/basic-c-sharp/spacetimedb/Lib.cs index 4e67d396ca..2b1f202a92 100644 --- a/templates/basic-c-sharp/spacetimedb/Lib.cs +++ b/templates/basic-c-sharp/spacetimedb/Lib.cs @@ -11,16 +11,15 @@ public static partial class Module [SpacetimeDB.Reducer] public static void Add(ReducerContext ctx, string name) { - ctx.Db.Person.Insert(new Person { Name = name }); + ctx.Db.person.Insert(new Person { Name = name }); } [SpacetimeDB.Reducer] public static void SayHello(ReducerContext ctx) { - foreach (var person in ctx.Db.Person.Iter()) + foreach (var person in ctx.Db.person.Iter()) { Log.Info($"Hello, {person.Name}!"); } Log.Info("Hello, World!"); } -}