A client library in .NET for BlueDB library. Includes base classes for entities and supports JSON encoding/decoding of entities.
You can read the documentation and tutorials under the Wiki.
Defining entity classes:
class User : BlueDBEntity
{
// example string field
public static readonly Field NameField = Field.Register(nameof(Name));
public string Name { get; set; }
}
(De)serializing single entities to/from JSON:
string json = JSON.Encode(user);
User user = JSON.Decode<User>(json);
(De)serializing lists of entities to/from JSON:
string json = JSON.Encode(users);
List<User> users = JSON.DecodeList<User>(json);
JSON utility class simply uses the JSON.NET library, so you can of course encode/decode entity objects on your own.
.NET Standard 2.0
Gregor Mohorko (www.mohorko.info)
Copyright (c) 2020 Gregor Mohorko