November 04, 2015 by Anuraj
aspnet5 sqlite autofac
This post is about configuring the ASP.NET identity with Sqlite Database. In ASP.NET5, you can configure the identity to use Sqlite by modifying the DbContext. Instead of using SqlServer, you can use Sqlite.
Here is the Startup.cs, configure services method.
And the Db context, you need override the OnConfiguring() method, and you can specify the provider with connection string.
And in the project.json file, you need to mention the Sqlite dependency as well.
Here is the Sqlite Database created.
Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub