Test EF / Mysql
This commit is contained in:
20
LaDOSE.Src/LaDOSE.Api/Context/LaDOSEDbContext.cs
Normal file
20
LaDOSE.Src/LaDOSE.Api/Context/LaDOSEDbContext.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user