Get started - Setup server
SapphireDb-Server runs on an Asp.Net Core application. First step is to setup the server to use SapphireDb.
You need to have a working Asp.Net Core application and a configured DbContext.
Installation
Install package
To install the package execute the following command in your package manager console
You can also install the extension using NuGet package manager. The project can be found here: https://www.nuget.org/packages/SapphireDb/
Configure DbContext
You now have to change your DbContext to derive from SapphireDbContext
.
Register services and update pipeline
To use the SapphireDb you also have to make some changes in your Startup.cs
-File.
(Optional) Enable CORS
If you are using a client application that has a different origin than the server application you have to enable CORS
Example
You can also check out the example project: ExampleDone
Your SapphireDb-server should now work.
Continue with the setup of a client