We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc456ad commit 44fda8dCopy full SHA for 44fda8d
1 file changed
crates/bindings-csharp/Codegen.Tests/fixtures/diag/Lib.cs
@@ -1,3 +1,4 @@
1
+using System.ComponentModel;
2
using SpacetimeDB;
3
4
public enum LocalEnum { }
@@ -361,6 +362,19 @@ public static partial class InAnotherNamespace
361
362
public partial struct TestDuplicateTableName { }
363
}
364
365
+[SpacetimeDB.Table]
366
+public partial struct TestDefaultFeildValues
367
+{
368
+ [Unique]
369
+ public int? UniqueField;
370
+
371
+ [Default(5)]
372
+ public int IntFeildWithDefault;
373
374
+ [Default("Attribute defined default value")]
375
+ public string StringFeildWithDefault;
376
+}
377
378
[SpacetimeDB.Table]
379
[SpacetimeDB.Index.BTree(Name = "TestIndexWithoutColumns")]
380
[SpacetimeDB.Index.BTree(Name = "TestIndexWithEmptyColumns", Columns = [])]
0 commit comments