trying to merge identity in api
This commit is contained in:
parent
9d4fd1e6c0
commit
5f6095f3ef
39 changed files with 868 additions and 282 deletions
16
Sledgemapper.Api/Helpers/SqliteDataContext.cs
Normal file
16
Sledgemapper.Api/Helpers/SqliteDataContext.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace Sledgemapper.Helpers
|
||||
{
|
||||
public class SqliteDataContext : DataContext
|
||||
{
|
||||
public SqliteDataContext(IConfiguration configuration) : base(configuration) { }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder options)
|
||||
{
|
||||
// connect to sqlite database
|
||||
options.UseSqlite(Configuration.GetConnectionString("WebApiDatabase"));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue