mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2025-12-10 04:19:31 +02:00
add discord bot
change net6.0 net7.0
This commit is contained in:
18
Database/AppDbContext.cs
Normal file
18
Database/AppDbContext.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using DiscordApp.Database.Tables;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace DiscordApp.Database
|
||||
{
|
||||
public class AppDbContext : DbContext
|
||||
{
|
||||
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
|
||||
|
||||
public DbSet<Passport> Passport { get; set; }
|
||||
public DbSet<Autobranches> Autobranches { get; set; }
|
||||
public DbSet<Autoreactions> Autoreactions { get; set; }
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user