Skip to content

GregaMohorko/BlueDBClient.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlueDBClient.NET

A client library in .NET for BlueDB library. Includes base classes for entities and supports JSON encoding/decoding of entities.

Release NuGet

Documentation & Tutorials

You can read the documentation and tutorials under the Wiki.

Short examples

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.

Requirements

.NET Standard 2.0

Author and License

Gregor Mohorko (www.mohorko.info)

Copyright (c) 2020 Gregor Mohorko

Apache License 2.0