In memory .NET 6 database with persistence to disk, files are saved as plain json.
using Example;
Helix<Person>.Register();
var persons = Helix<Person>.Get();
var p1 = new Person()
{
Name = "Person1",
Age = 50
};
var p2 = new Person()
{
Name = "Person2",
Age = 100
};
persons.Add(p1);
persons.Add(p2);
Helix<Person>.Persist();
namespace Example
{
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
}
Optionally you can set the environment variable HELIX
to the path you'd like the files to be persisted to. For example HELIX=C:\Helix\