예제 #1
0
        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    = "*****@*****.**",
            });
        }
예제 #2
0
 public BotDomainRepository(ChatBotDbContext context)
     : base(context)
 {
 }
예제 #3
0
 public RepositoryBase(ChatBotDbContext context)
 {
     _context = context;
 }
예제 #4
0
 public ApplicationRoleRepository(ChatBotDbContext context)
     : base(context)
 {
 }
 public LoggingRepository(ChatBotDbContext context)
     : base(context)
 {
 }
 public TrafficSourcesEcommerceRepository(ChatBotDbContext context)
     : base(context)
 {
 }
예제 #7
0
 public UserRoleRepository(ChatBotDbContext context)
     : base(context)
 {
 }
 public PageBehaviorEcommerceRepository(ChatBotDbContext context)
     : base(context)
 {
 }
예제 #9
0
 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;
 }
예제 #11
0
 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)
 {
 }