// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, TVShowsContext context) { app.UseStaticFiles(); app.UseMvc(); // инициализация базы данных DbInitializer.Initialize(context); }
public ShowsController(IGetShowsWEBCommand getShowsCommand, IGetShowCommand getShowCommand, IAddShowCommand addShowCommand, IEditShowCommand editShowCommand, IDeleteShowCommand deleteShowCommand, TVShowsContext context, IGetActorsCommand getActorsCommand) { this.getShowsCommand = getShowsCommand; this.getShowCommand = getShowCommand; this.addShowCommand = addShowCommand; this.editShowCommand = editShowCommand; this.deleteShowCommand = deleteShowCommand; Context = context; }
static void Main(string[] args) { var tv = new TVShowsContext(); tv.Roles.Add(new Role { RoleName = "Administrator" }); //tv.Users.Add(new User //{ // FirstName = "Dusan", // LastName = "Krsmanvic", // Email = "*****@*****.**", // Gender = 'm', // Password = "******", // RoleId = 1, // CityId = 1, // Token = "dfjsdofjsdojojsog", // Username = "******" //}); tv.SaveChanges(); }
public EFAddRoleCommand(TVShowsContext context) : base(context) { }
public EFGetCategoryCommand(TVShowsContext context) : base(context) { }
public UserShowsRepository(TVShowsContext context) { _context = context; }
public EFGetShowsWEBCommnad(TVShowsContext context) : base(context) { }
public EFAddCityCommand(TVShowsContext context) : base(context) { }
public EFAddShowCommands(TVShowsContext context) : base(context) { }
public EFGetUserCommand(TVShowsContext context) : base(context) { }
protected EFBaseCommand(TVShowsContext context) => Context = context;
public EFAddUserCommand(TVShowsContext context, IEmailSender emailSender) : base(context) { this.emailSender = emailSender; }
public EFGetRolesCommand(TVShowsContext context) : base(context) { }
public EFAuthCommand(TVShowsContext context) : base(context) { }
public EFDeleteRoleCommand(TVShowsContext context) : base(context) { }
public EFDeleteUserCommand(TVShowsContext context) : base(context) { }
public EFGetActorsCommand(TVShowsContext context) : base(context) { }
public EFDeleteCityCommand(TVShowsContext context) : base(context) { }
public EFEditShowCommand(TVShowsContext context) : base(context) { }
public OperationsController(TVShowsContext context) { _context = context; }
public EFGetCommentCommand(TVShowsContext context) : base(context) { }
public EFAddActorCommand(TVShowsContext context) : base(context) { }