# SapphireDb **Repository Path**: weyhd_geffzhang/SapphireDb ## Basic Information - **Project Name**: SapphireDb - **Description**: SapphireDb Server, a self-hosted, easy to use realtime database for Asp.Net Core and EF Core https://sapphire-db.com/ - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-04 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SapphireDb - Server for Asp.Net Core [](https://travis-ci.org/morrisjdev/RealtimeDatabase)
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](https://sapphire-db.com/) ## Features - :wrench: Dead simple configuration - :satellite: Broad technology support - :computer: Self hosted - :iphone: Offline support - :floppy_disk: Easy to use CRUD operations - :zap: Model validation - :heavy_check_mark: Database support - :open_file_folder: Supports joins/includes - :loop: Complex server evaluated queries - :electric_plug: Actions - :key: Authorization included - :envelope: Messaging - :globe_with_meridians: Scalable [Learn more](https://sapphire-db.com/) ## Installation ### Install package 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/](https://www.nuget.org/packages/SapphireDb/) ### Configure DbContext You now have to change your DbContext to derive from `SapphireDbContext`. Also make sure to adjust the constructor parameters. ````csharp // Change DbContext to SapphireDbContext public class MyDbContext : SapphireDbContext { //Add SapphireDatabaseNotifier for DI public MyDbContext(DbContextOptions