Changed assignment of a DatabasSchema to an EntityDatabase.
Previous: used init only setter Schema
var database = new MemoryDatabase(dbName) { Schema = Schema };
Now: used constructor parameter DatabasSchema schema
var database = new MemoryDatabase(dbName, Schema);
Reason: SQL databases require a Schema. So a missing schema ensures a fail fast in their constructor.
Performance
Changed EntitySet<,> from class to struct to speedup construction of a class extending FlioxClient using EntitySet<,> as fields / properties to define database containers.
E.g. new MyTestClient(hub) with seven EntitySet<,> fields take ~ 0.5 µs and allocates ~ 900 bytes
Breaking changes
Changed assignment of a
DatabasSchema
to anEntityDatabase
.Previous: used init only setter
Schema
Now: used constructor parameter
DatabasSchema schema
Reason: SQL databases require a Schema. So a missing schema ensures a fail fast in their constructor.
Performance
Changed
EntitySet<,>
fromclass
tostruct
to speedup construction of a class extendingFlioxClient
usingEntitySet<,>
as fields / properties to define database containers.E.g.
new MyTestClient(hub)
with sevenEntitySet<,>
fields take ~ 0.5 µs and allocates ~ 900 bytes