using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Winsoft.GOV.XF.WebApi.WXCore.Models; namespace Winsoft.GOV.XF.WebApi.WXCore.Data { public class XFContext: DbContext { public XFContext(DbContextOptions options) : base(options) { } public DbSet WXUsers { get; set; } public DbSet Assets { get; set; } public DbSet Bundles { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("WXUser"); modelBuilder.Entity().ToTable("Asset"); modelBuilder.Entity().ToTable("Bundle"); } } }