Started on the UI project

Added ReactiveUI, Material design and MahApps
Added the welcome page
This commit is contained in:
SpoinkyNL committed 2017-12-18 01:04:28 +01:00
1 parent d64c1a660d
commit fc996b7258
26 files changed
+869 -100

No files matched your search

+28
View File
@@ -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
}
}