Ordering files

This commit is contained in:
2018-10-06 13:05:38 +02:00
parent f670cd78a8
commit d3cdc93c14
11 changed files with 89 additions and 55 deletions

View File

@@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore;
namespace LaDOSE.Entity.Context
{
public class LaDOSEDbContext : DbContext
{
public DbSet<Game> Game { get; set; }
public DbSet<ApplicationUser> ApplicationUser { get; set; }
public DbSet<Season> Season { get; set; }
public LaDOSEDbContext(DbContextOptions options) : base(options)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
}
}
}

View File

@@ -4,4 +4,8 @@
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="2.1.2" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,15 @@
using System;
namespace LaDOSE.Entity
{
public class Season
{
public int Id { get; set; }
public string Name { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
}
}