mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Started on the UI project
Added ReactiveUI, Material design and MahApps Added the welcome page
This commit is contained in:
1 parent
d64c1a660d
commit
fc996b7258
26 files changed
+869
-100
No files matched your search
@@ -0,0 +1,28 @@
|
||||
using Artemis.Storage.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Artemis.Storage
|
||||
{
|
||||
internal class StorageContext : DbContext
|
||||
{
|
||||
internal DbSet<Profile> Profiles { get; set; }
|
||||
internal DbSet<Setting> Settings { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
optionsBuilder.UseSqlite("Data Source=Storage.db");
|
||||
}
|
||||
|
||||
#region Overrides of DbContext
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
// Composite keys must be configured with fluent API in Core
|
||||
modelBuilder.Entity<Layer>().HasKey(l => new {l.ProfileId, l.Name});
|
||||
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user