Files
KfChatDotNet/KfChatDotNetBot/ApplicationDbContext.cs

22 lines
834 B
C#

using KfChatDotNetBot.Models.DbModels;
using Microsoft.EntityFrameworkCore;
namespace KfChatDotNetBot;
public class ApplicationDbContext : DbContext
{
protected override void OnConfiguring(DbContextOptionsBuilder builder)
{
builder.UseSqlite("Data Source=db.sqlite");
}
public DbSet<UserDbModel> Users { get; set; }
public DbSet<JuicerDbModel> Juicers { get; set; }
public DbSet<SettingDbModel> Settings { get; set; }
public DbSet<HowlggBetsDbModel> HowlggBets { get; set; }
public DbSet<RainbetBetsDbModel> RainbetBets { get; set; }
public DbSet<TwitchViewCountDbModel> TwitchViewCounts { get; set; }
public DbSet<ChipsggBetDbModel> ChipsggBets { get; set; }
public DbSet<ImageDbModel> Images { get; set; }
public DbSet<UserWhoWasDbModel> UsersWhoWere { get; set; }
}