InitialUserAndFun.cs 441 B

1234567891011121314151617181920
  1. using WePlatform.EF;
  2. namespace WePlatform.SeedData
  3. {
  4. public class InitialUserAndFun
  5. {
  6. private readonly WePlatformDbContext _context;
  7. public InitialUserAndFun(WePlatformDbContext context)
  8. {
  9. _context = context;
  10. }
  11. public void Create()
  12. {
  13. new DefaultFunctionsCreator(_context).Create();
  14. new RoleAndUserCreator(_context).Create();
  15. }
  16. }
  17. }