Creating Strongly Typed JSON Collections
{
"Name": ""
}using Starcounter;
namespace TypedJSONCollectionSample
{
partial class Person : Json
{
}
}{
"People": [{}]
}using Starcounter;
namespace TypedJSONCollectionSample
{
partial class PersonCollection : Json
{
static PersonCollection()
{
DefaultTemplate.People.ElementType.InstanceType = typeof(Person);
}
}
}Last updated