Test EF / Mysql

This commit is contained in:
2018-10-05 00:18:37 +02:00
parent 5a690e4dbe
commit d2c1a9d5f9
7 changed files with 76 additions and 3 deletions

View File

@@ -0,0 +1,20 @@

using System;
using LaDOSE.Entity;
using Microsoft.EntityFrameworkCore;
namespace LaDOSE.Api.Context
{
public class LaDOSEDbContext : DbContext
{
public DbSet<Game> Game { get; set; }
public LaDOSEDbContext(DbContextOptions options) : base(options)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
}
}
}