![]() |
VOOZH | about |
dotnet add package Plugin.Firebase.Firestore --version 4.0.0
NuGet\Install-Package Plugin.Firebase.Firestore -Version 4.0.0
<PackageReference Include="Plugin.Firebase.Firestore" Version="4.0.0" />
<PackageVersion Include="Plugin.Firebase.Firestore" Version="4.0.0" />Directory.Packages.props
<PackageReference Include="Plugin.Firebase.Firestore" />Project file
paket add Plugin.Firebase.Firestore --version 4.0.0
#r "nuget: Plugin.Firebase.Firestore, 4.0.0"
#:package Plugin.Firebase.Firestore@4.0.0
#addin nuget:?package=Plugin.Firebase.Firestore&version=4.0.0Install as a Cake Addin
#tool nuget:?package=Plugin.Firebase.Firestore&version=4.0.0Install as a Cake Tool
Cloud Firestore is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud. Like Firebase Realtime Database, it keeps your data in sync across client apps through realtime listeners and offers offline support for mobile and web so you can build responsive apps that work regardless of network latency or Internet connectivity. Cloud Firestore also offers seamless integration with other Firebase and Google Cloud products, including Cloud Functions.
Install-Package Plugin.Firebase.Firestore
To be able to fetch your data from the firestore, you'll need to create a POCO that implements the IFirestoreObject interface. Use the FirestoreDocumentId and FirestoreProperty attributes to hook up its properties, for example:
public sealed class Pokemon : IFirestoreObject
{
[FirestoreDocumentId]
public string Id { get; private set; }
[FirestoreProperty("name")]
public string Name { get; private set; }
[FirestoreProperty("weight_in_kg")]
public double WeightInKg { get; private set; }
[FirestoreProperty("height_in_cm")]
public float HeightInCm { get; private set; }
[FirestoreProperty("sighting_count")]
public long SightingCount { get; private set; }
[FirestoreProperty("is_from_first_generation")]
public bool IsFromFirstGeneration { get; private set; }
[FirestoreProperty("poke_type")]
public PokeType PokeType { get; private set; }
[FirestoreProperty("moves")]
public IList<string> Moves { get; private set; }
[FirestoreProperty("first_sighting_location")]
public SightingLocation FirstSightingLocation { get; private set; }
[FirestoreProperty("items")]
public IList<SimpleItem> Items { get; private set; }
[FirestoreProperty("creation_date")]
public DateTimeOffset CreationDate { get; private set; }
[FirestoreServerTimestamp("server_timestamp")]
public DateTimeOffset ServerTimestamp { get; private set; }
[FirestoreProperty("original_reference")]
public IDocumentReference OriginalReference { get; private set; }
}
This class is represented in firestore like this:
Take a look at the documentation for the AdamE.Firebase.iOS.CloudFirestore packages, because Plugin.Firebase's code is abstracted but still very similar.
Since code should be documenting itself you can also take a look at the following classes:
Debug.WriteLine() in object extensions (issue #174)| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-android35.0 net9.0-android35.0 is compatible. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-ios18.0 net9.0-ios18.0 is compatible. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on Plugin.Firebase.Firestore:
| Package | Downloads |
|---|---|
|
Plugin.Firebase
The plugin includes cross-platform APIs for Firebase Analytics, Auth, Cloud Messaging, Crashlytics, Dynamic Links, Firestore, Cloud Functions, Remote Config and Storage. |
|
|
benxu.AppPlatform.Firebase.Firestore
Firebase Cloud Firestore implementation for benxu App Platform. Provides document and collection operations, real-time listeners, batch writes, and transactions with offline persistence support. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0 | 37,177 | 12/28/2025 |
| 3.1.3 | 88,554 | 3/28/2025 |
| 3.1.2 | 27,237 | 1/16/2025 |
| 3.1.1 | 16,284 | 12/3/2024 |
| 3.1.0 | 21,510 | 11/9/2024 |
| 3.0.0 | 50,980 | 5/29/2024 |
| 2.0.7 | 52,599 | 3/29/2024 |
| 2.0.6 | 24,169 | 1/13/2024 |
| 2.0.5 | 15,082 | 11/14/2023 |
| 2.0.4 | 7,513 | 10/18/2023 |
| 2.0.3 | 18,185 | 7/20/2023 |
| 2.0.2 | 25,468 | 4/11/2023 |
| 2.0.1 | 2,476 | 3/31/2023 |
| 2.0.0 | 6,795 | 3/26/2023 |