| 123456789101112131415161718192021222324252627282930 |
-
- using WePlatform.EF;
- namespace WePlatform.SeedData
- {
- public class InitialDbBuilder
- {
- private readonly WePlatformDbContext _context;
- public InitialDbBuilder(WePlatformDbContext 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();
- //new DefaultAppGuidsCreator(_context).Create();
- _context.SaveChanges();
- }
- }
- }
|