public AdminController(TruckContext context, IRepos repos, IStorage storage)
 {
     _context = context;
     _repos   = repos;
     _storage = storage;
 }
Esempio n. 2
0
 public Repository(TruckContext context)
 {
     _context = context;
 }
Esempio n. 3
0
 public FindTruckQuery(TruckContext context) => this.context = context;
 public TruckModelServices(TruckContext contextDb)
 {
     _contextDb = contextDb;
 }
Esempio n. 5
0
 public ChassisExistsValidator(TruckContext context, string errorMessage)
 {
     this.context      = context;
     this.errorMessage = errorMessage;
 }
Esempio n. 6
0
 public DeleteTruckCommand(TruckContext context) => this.context = context;
Esempio n. 7
0
 public VeiculoRepository(TruckContext context) : base(context)
 {
 }
Esempio n. 8
0
 public CategoriaRepository(TruckContext context) : base(context)
 {
 }
Esempio n. 9
0
 public GetTrucksQuery(TruckContext context) => this.context = context;
 public Repository(TruckContext context, IConfiguration configuration)
 {
     Context       = context;
     DbSet         = context.Set <TEntity>();
     Configuration = configuration;
 }