Genesis Game Server Project Setup
This commit is contained in:
15
GameServer/Data/AppDbContext.cs
Normal file
15
GameServer/Data/AppDbContext.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using GameServer.Models;
|
||||
|
||||
namespace GameServer.Data
|
||||
{
|
||||
public class AppDbContext : DbContext
|
||||
{
|
||||
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
|
||||
{
|
||||
|
||||
}
|
||||
public DbSet<UserCharacterModel> UserCharacters { get; set; }
|
||||
public DbSet<CharacterModel> Characters { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user