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