namespace vassago.Models; using Microsoft.Extensions.Configuration; using Microsoft.EntityFrameworkCore; public class ChattingContext : DbContext { public DbSet Attachments { get; set; } public DbSet Channels { get; set; } //public DbSet Emoji {get;set;} public DbSet Messages { get; set; } public DbSet Accounts { get; set; } public DbSet Users { get; set; } public ChattingContext(DbContextOptions options) : base(options) { } public ChattingContext() : base() { } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseNpgsql(Shared.DBConnectionString); //.EnableSensitiveDataLogging(true); //"sensitive" is one thing. writing "did something" every time you think a thought is a different thing. } }