Firenet

Firestore orm for .net applications.


Keywords
firenet, firestore, orm, nosql, infra, dotnet, database, ddd-architecture, firebase
Install
Install-Package Firenet -Version 1.2.0

Documentation


 Firenet

Firestore orm for .net applications. A simple easy way to manipulate firestore database and keeping the same domain driven design, similiar the entityframework for be easy to work.


Installation

Download by dotnet cli:

  Install-Package Firenet -Version 1.2.0

Release notes

  • Inclusion of default converter for guid and datetime types into domain model, now is possible use freely this types.
  • Inclusion of OnConfiguring method into the Firecontext optional for set your preferences.
  • Inclusion of UseJsonCredentialsFile method into the FireOption type for set the filename of credentials that is the same folder where the assemblies from application is running.
  • Fixed the select method into the asQueryable, working better now.

How to use

Put the data annotations in the class model and properties:
image

Create a class that implement 'FireContext' and create the fireCollections that represents the models that you want store:
image
Or:
image

You can put data annotation 'CollectionName' for informate the name of collection. If it doesn't have collection name data annotation, the name of collection will be the name of object IFireCollection ('Users' in this example).
image

Now it's possible configure inside the firecontext:
image
Or:
image

Add on startup configureServices:
image

Or in console application, instance:
image