| 123456789101112131415161718192021222324252627 |
- 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<XFContext> options) : base(options)
- {
- }
- public DbSet<WXUser> WXUsers { get; set; }
- public DbSet<Asset> Assets { get; set; }
- public DbSet<Bundle> Bundles { get; set; }
- protected override void OnModelCreating(ModelBuilder modelBuilder)
- {
- modelBuilder.Entity<WXUser>().ToTable("WXUser");
- modelBuilder.Entity<Asset>().ToTable("Asset");
- modelBuilder.Entity<Bundle>().ToTable("Bundle");
- }
- }
- }
|