Identityserver4.admin: Using SQLite as default database engine

Created on 22 Jun 2018  路  5Comments  路  Source: skoruba/IdentityServer4.Admin

A modest suggestion. By default Admin uses SqlServer which has to be separately installed for anyone who doesn't use Visual Studio daily.

Required changes would be pretty small:

UseSqlServer -> UseSqlite in StartupHelpers.cs and adding SQLite provider package for EntityFramework.Core.

I myself use PostgreSQL (works great), but for demonstration purposes I think SQLite would the best choice. This would also make checking out the Admin so much easier for Linux/MacOS folks.

enhancement

Most helpful comment

I think that you could have it added to your migration documentation (where to change provider and what packages to add). Info on how you can use different providers (sqlserver, postgresql, sqlite) with default sqlite provider.

All 5 comments

It's very good point. It would be nice to extend it to other databases.

I can imagine some configuration that you are able to switch database according specific requirments. :)

Btw: Are you using VS Code or similar editor for running this solution?

No, I'm using VS. But I've used VS Code for other .net core projects before and I could test if that works.

I'll check the possibilities how to combine more configuration of different databases like PostgreSQL, MySQL, SQLite etc.

I think that you could have it added to your migration documentation (where to change provider and what packages to add). Info on how you can use different providers (sqlserver, postgresql, sqlite) with default sqlite provider.

Added steps for changing to other providers: GH-37

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skoruba picture skoruba  路  4Comments

we4sz picture we4sz  路  4Comments

Hens94 picture Hens94  路  4Comments

maythamfahmi picture maythamfahmi  路  4Comments

imabdul-dev picture imabdul-dev  路  4Comments