mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-11 02:00:04 -04:00
Update Lib.cs
Signed-off-by: John Detter <4099508+jdetter@users.noreply.github.com>
This commit is contained in:
@@ -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!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user