refactoring backend structure
This commit is contained in:
parent
dcc59f7b69
commit
0e1c16ab91
36 changed files with 786 additions and 454 deletions
|
@ -1,16 +1,16 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
// using Microsoft.EntityFrameworkCore;
|
||||
// using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace Sledgemapper.Helpers
|
||||
{
|
||||
public class SqliteDataContext : DataContext
|
||||
{
|
||||
public SqliteDataContext(IConfiguration configuration) : base(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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
// 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