예제 #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;
 }
예제 #3
0
 public DayJobServices(TransportDbContext context)
 {
     _context = context;
 }
예제 #4
0
 public DestinationRepository(TransportDbContext dbContext) : base(dbContext)
 {
 }
 public UserManagementController(TransportDbContext dbContext)
 {
     _userManagementRepository = new UserManagementRepository(dbContext);
     _dbContext = dbContext;
 }
예제 #6
0
 public CustomerRepository(TransportDbContext dbContext) : base(dbContext)
 {
 }
예제 #7
0
 public UserRepository(TransportDbContext dbContext) : base(dbContext)
 {
 }
 public RouteServices(TransportDbContext context,
                      ILocationServices locationServices)
 {
     _context          = context;
     _locationServices = locationServices;
 }
예제 #9
0
 public CarDirectoryRepository(TransportDbContext dbContext) : base(dbContext)
 {
 }
 public VehicleBrandServices(TransportDbContext context)
 {
     _context = context;
 }
예제 #11
0
 public BookedCarsRepository(TransportDbContext dbContext) : base(dbContext)
 {
 }
예제 #12
0
 public VehicleEntryRepository(TransportDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public VehicleServices(TransportDbContext context,
                        ITransInfoServices transInfoServices)
 {
     _context           = context;
     _transInfoServices = transInfoServices;
 }
 public LocationServices(TransportDbContext context)
 {
     _context = context;
 }
예제 #15
0
 public UserServices(TransportDbContext context,
                     UserManager <AppIdentityUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
예제 #16
0
 public Repository(TransportDbContext dbContext)
 {
     this.dbContext = dbContext;
     _dbSet         = dbContext.Set <TEntity>();
 }
예제 #17
0
 public UserManagementRepository(TransportDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public VehicleEntryController(TransportDbContext dbContext)
 {
     _vehicleEntryRepository = new VehicleEntryRepository(dbContext);
 }