protected override void Seed(ChatBotDbContext context) { // This method will be called after migrating to the latest version. // You can use the DbSet<T>.AddOrUpdate() helper extension method // to avoid creating duplicate seed data. context.User.AddOrUpdate(u => u.UserName, new User { UserName = "******", Email = "*****@*****.**", }); }
public BotDomainRepository(ChatBotDbContext context) : base(context) { }
public RepositoryBase(ChatBotDbContext context) { _context = context; }
public ApplicationRoleRepository(ChatBotDbContext context) : base(context) { }
public LoggingRepository(ChatBotDbContext context) : base(context) { }
public TrafficSourcesEcommerceRepository(ChatBotDbContext context) : base(context) { }
public UserRoleRepository(ChatBotDbContext context) : base(context) { }
public PageBehaviorEcommerceRepository(ChatBotDbContext context) : base(context) { }
public static void Initialize(IServiceProvider serviceProvider, string imagesPath) { _context = (ChatBotDbContext)serviceProvider.GetService(typeof(ChatBotDbContext)); InitializeUserRoles(); }
public UserRepository(ChatBotDbContext context, IRoleRepository roleReposistory) : base(context) { _roleReposistory = roleReposistory; }
public ApplicationUserGroupRepository(ChatBotDbContext context) : base(context) { }
public MenuRoleRepository(ChatBotDbContext context) : base(context) { }
public ApplicationGroupRepository(ChatBotDbContext dbFactory) : base(dbFactory) { }
public ProductListPerformanceEcommerceRepository(ChatBotDbContext context) : base(context) { }
public OverviewEcommerceRepository(ChatBotDbContext context) : base(context) { }
public ProductPerformaceRepository(ChatBotDbContext context) : base(context) { }