Exemplo n.º 1
0
 public static async Task InitializeAync (TransportDbContext context, IServiceProvider serviceProvider)
 {
     var roleManager = serviceProvider.GetRequiredService<RoleManager<Role>>();
     foreach (string index in _roleArray)
     {
         if ((await roleManager.FindByNameAsync(index)) == null)
         {
             await roleManager.CreateAsync(new Role { Name = index });
         }
     }
 }
 public FuelServices(TransportDbContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public DayJobServices(TransportDbContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public DestinationRepository(TransportDbContext dbContext) : base(dbContext)
 {
 }
 public UserManagementController(TransportDbContext dbContext)
 {
     _userManagementRepository = new UserManagementRepository(dbContext);
     _dbContext = dbContext;
 }
Exemplo n.º 6
0
 public CustomerRepository(TransportDbContext dbContext) : base(dbContext)
 {
 }
Exemplo n.º 7
0
 public UserRepository(TransportDbContext dbContext) : base(dbContext)
 {
 }
 public RouteServices(TransportDbContext context,
                      ILocationServices locationServices)
 {
     _context          = context;
     _locationServices = locationServices;
 }
Exemplo n.º 9
0
 public CarDirectoryRepository(TransportDbContext dbContext) : base(dbContext)
 {
 }
 public VehicleBrandServices(TransportDbContext context)
 {
     _context = context;
 }
Exemplo n.º 11
0
 public BookedCarsRepository(TransportDbContext dbContext) : base(dbContext)
 {
 }
Exemplo n.º 12
0
 public VehicleEntryRepository(TransportDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public VehicleServices(TransportDbContext context,
                        ITransInfoServices transInfoServices)
 {
     _context           = context;
     _transInfoServices = transInfoServices;
 }
 public LocationServices(TransportDbContext context)
 {
     _context = context;
 }
Exemplo n.º 15
0
 public UserServices(TransportDbContext context,
                     UserManager <AppIdentityUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
Exemplo n.º 16
0
 public Repository(TransportDbContext dbContext)
 {
     this.dbContext = dbContext;
     _dbSet         = dbContext.Set <TEntity>();
 }
Exemplo n.º 17
0
 public UserManagementRepository(TransportDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public VehicleEntryController(TransportDbContext dbContext)
 {
     _vehicleEntryRepository = new VehicleEntryRepository(dbContext);
 }