Skip to content
Eduardo (Flakes) edited this page Jul 7, 2021 · 2 revisions

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

Installation

Download by dotnet cli:

  Install-Package Firenet  

How to use

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

Create a class that implement 'FireContext' and write the jsonCredential with the path and create the fireCollections that represents the models that you want store:
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

Add on startup configureServices:
image

Or in console application, instance:
image

Clone this wiki locally