| 1234567891011121314151617181920212223242526272829 |
- using WeApp.EF;
- namespace WeApp.SeedData
- {
- public class InitialDbBuilder
- {
- private readonly WeAppDbContext _context;
- public InitialDbBuilder(WeAppDbContext context)
- {
- _context = context;
- }
- public void Create()
- {
- new DefaultViewAndSpCreate(_context).Create();
- new DefaultTypesCreator(_context).Create();
- new DefaultDataCreator(_context).Create();
- new InitialUserAndFun(_context).Create();
- new DefaultSettingsCreator(_context).Create();
- new DefaultStatesCreator(_context).Create();
- new DefaultNotificationsCreator(_context).Create();
- _context.SaveChanges();
- }
- }
- }
|