using Microsoft.EntityFrameworkCore; namespace BrokerApiCore; public class SsoAccountDbContext: DbContext { private readonly DbContextOptions m_options; public DbSet SsoAccounts { get; set; } // public DbSet WalletUsers { get; set; } public SsoAccountDbContext(DbContextOptions options) : base(options) { m_options = options; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity(entity => { entity.ToTable("wallet_user"); entity.HasNoKey(); entity.Property(x => x.Id).HasColumnName("id").HasColumnType("bigint unsigned"); entity.Property(x => x.AccessToken).HasColumnName("access_token").HasColumnType("bigint unsigned"); entity.Property(x => x.AccessTokenIgm).HasColumnName("access_igm_token").HasColumnType("bigint unsigned"); entity.Property(x => x.Email).HasColumnName("email").HasColumnType("varchar(500)"); }); // base.OnModelCreating(modelBuilder); } }