-
Notifications
You must be signed in to change notification settings - Fork 1
Home
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.
Download by dotnet cli:
Install-Package Firenet
Put the data annotations in the class model and properties:
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:
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).
Add on startup configureServices:
Or in console application, instance: