This commit is contained in:
Michael 2017-03-25 10:30:41 -04:00
parent 0a8c420c92
commit 90d062973b
5 changed files with 26 additions and 3 deletions

View file

@ -26,6 +26,8 @@ namespace Project_Unite
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
var configuration = new Migrations.Configuration();

View file

@ -92,4 +92,13 @@ namespace Project_Unite.Models
Moderator,
User
}
public class Configuration
{
public string Id { get; set; }
public string SiteName { get; set; }
public string ReturnEmail { get; set; }
public string UniteBotToken { get; set; }
public string DiscordChannelId { get; set; }
}
}

View file

@ -194,6 +194,7 @@ namespace Project_Unite.Models
return new ApplicationDbContext();
}
public DbSet<Configuration> Configs { get; set; }
public DbSet<ShiftoriumUpgrade> ShiftoriumUpgrades { get; set; }
public DbSet<Notification> Notifications { get; set; }
public DbSet<UserFollow> Follows { get; set; }

View file

@ -8,6 +8,8 @@ namespace Project_Unite
{
public static class NotificationDaemon
{
public static Action<Notification> OnBroadcast;
public static void NotifyFollowers(string uid, string title, string desc, string url)
{
var db = new ApplicationDbContext();

View file

@ -106,6 +106,18 @@
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Nito.AsyncEx, Version=3.0.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.3.0.1\lib\net45\Nito.AsyncEx.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Nito.AsyncEx.Concurrent, Version=3.0.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.3.0.1\lib\net45\Nito.AsyncEx.Concurrent.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Nito.AsyncEx.Enlightenment, Version=3.0.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Nito.AsyncEx.3.0.1\lib\net45\Nito.AsyncEx.Enlightenment.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
@ -169,9 +181,6 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json">
<HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="EntityFramework">
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
</Reference>