| 1234567891011121314151617181920212223242526272829 |
-
- using WeOnlineApp.EF;
- namespace WeOnlineApp.SeedData
- {
- public class InitialDbBuilder
- {
- private readonly WeOnlineAppDbContext _context;
- public InitialDbBuilder(WeOnlineAppDbContext 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();
- }
- }
- }
|