ApplicationDbContext.cs 910 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
  6. using Microsoft.EntityFrameworkCore;
  7. using Winsoft.GOV.XF.WXCore.Models;
  8. namespace Winsoft.GOV.XF.WXCore.Data
  9. {
  10. public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
  11. {
  12. public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
  13. : base(options)
  14. {
  15. }
  16. protected override void OnModelCreating(ModelBuilder builder)
  17. {
  18. base.OnModelCreating(builder);
  19. // Customize the ASP.NET Identity model and override the defaults if needed.
  20. // For example, you can rename the ASP.NET Identity table names and more.
  21. // Add your customizations after calling base.OnModelCreating(builder);
  22. }
  23. }
  24. }