BusinessMigrationDbContext.cs 825 B

1234567891011121314151617181920212223242526272829
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Reflection;
  6. using Volo.Abp.EntityFrameworkCore;
  7. using XCZ.EntityFrameworkCore;
  8. namespace Business.EntityFrameworkCore
  9. {
  10. public class BusinessMigrationDbContext : AbpDbContext<BusinessMigrationDbContext>
  11. {
  12. public BusinessMigrationDbContext(
  13. DbContextOptions<BusinessMigrationDbContext> options
  14. ) : base(options)
  15. {
  16. }
  17. protected override void OnModelCreating(ModelBuilder modelBuilder)
  18. {
  19. base.OnModelCreating(modelBuilder);
  20. //改用低代码平台的表单流程
  21. modelBuilder.ConfigureForm();
  22. modelBuilder.ConfigureFlow();
  23. modelBuilder.ConfigureBusiness();
  24. }
  25. }
  26. }