12345678910111213141516171819202122232425262728 |
- 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 XFDbContext: DbContext
- {
- public XFDbContext(DbContextOptions<XFDbContext> 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");
- base.OnModelCreating(modelBuilder);
- }
- }
- }
|