![]() |
VOOZH | about |
dotnet add package SapphireDb --version 3.0.0
NuGet\Install-Package SapphireDb -Version 3.0.0
<PackageReference Include="SapphireDb" Version="3.0.0" />
<PackageVersion Include="SapphireDb" Version="3.0.0" />Directory.Packages.props
<PackageReference Include="SapphireDb" />Project file
paket add SapphireDb --version 3.0.0
#r "nuget: SapphireDb, 3.0.0"
#:package SapphireDb@3.0.0
#addin nuget:?package=SapphireDb&version=3.0.0Install as a Cake Addin
#tool nuget:?package=SapphireDb&version=3.0.0Install as a Cake Tool
SapphireDb is a self-hosted, easy to use realtime database for Asp.Net Core and EF Core.
It creates a generic API you can easily use with different clients to effortlessly create applications with realtime data synchronization. SapphireDb should serve as a self hosted alternative to firebase realtime database and firestore on top of .Net.
Check out the documentation for more details: Documentation
To install the package execute the following command in your package manager console
PM> Install-Package SapphireDb
You can also install the extension using Nuget package manager. The project can be found here: https://www.nuget.org/packages/SapphireDb/
You now have to change your DbContext to derive from SapphireDbContext.
// Change DbContext to SapphireDbContext
public class MyDbContext : SapphireDbContext
{
public MyDbContext(DbContextOptions<MyDbContext> options) : base(options)
{
}
public DbSet<User> Users { get; set; }
public DbSet<Test> Tests { get; set; }
}
To use the SapphireDb you also have to make some changes in your Startup.cs-File.
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
//Register services
services.AddSapphireDb(...)
.AddContext<MyDbContext>(cfg => ...);
}
public void Configure(IApplicationBuilder app)
{
//Add Middleware
app.UseSapphireDb();
}
}
Check out the documentation for more details: Documentation
SapphireDb - Server for Asp.Net Core
sapphiredb - JS client (JS, NodeJs, React, Svelte, ...)
ng-sapphiredb - Angular client
SapphireDb - MIT License
sapphiredb-js - MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. 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. |
| .NET Core | netcoreapp3.1 netcoreapp3.1 is compatible. |
Showing the top 2 NuGet packages that depend on SapphireDb:
| Package | Downloads |
|---|---|
|
SapphireDb.RedisSync
Redis sync module for SapphireDb |
|
|
SapphireDb.HttpSync
Http sync module for SapphireDb |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.1.8-alpha | 1,253 | 6/16/2021 |
| 3.1.7-alpha | 1,224 | 3/10/2021 |
| 3.1.6-alpha | 1,182 | 3/9/2021 |
| 3.1.5-alpha | 1,450 | 10/26/2020 |
| 3.1.4-alpha | 1,303 | 10/26/2020 |
| 3.1.3-alpha | 1,234 | 10/26/2020 |
| 3.1.2-alpha | 1,250 | 10/26/2020 |
| 3.1.1-alpha | 1,339 | 8/2/2020 |
| 3.1.0-alpha | 1,252 | 8/2/2020 |
| 3.0.0 | 21,473 | 7/25/2020 |
| 2.2.1 | 1,348 | 7/22/2020 |
| 2.2.0 | 2,037 | 6/20/2020 |
| 2.1.3 | 1,423 | 4/4/2020 |
| 2.1.2 | 1,474 | 4/3/2020 |
| 2.1.1 | 1,383 | 3/24/2020 |
| 2.1.0 | 1,705 | 3/21/2020 |
| 2.0.0 | 1,402 | 2/24/2020 |
| 1.5.0 | 1,413 | 2/18/2020 |
| 1.4.0 | 1,453 | 2/8/2020 |
| 1.3.0 | 1,413 | 1/21/2020 |