Example #1
0
 static void Main(string[] args)
 {
     using (var context = new BPDbContext())
     {
         context.Database.Initialize(force: true);
         Console.WriteLine("Database initializer done! Press any key to continue...");
         Console.ReadKey();
     }
 }
 public ManufacturerRepository()
 {
     db = new BPDbContext();
 }
 public BatteryChargingRepository()
 {
     db = new BPDbContext();
 }
 public BookmarkRepository()
 {
     db = new BPDbContext();
 }
Example #5
0
 public CategoryRepository()
 {
     db = new BPDbContext();
 }
 public StationRepository()
 {
     db = new BPDbContext();
     _batteryStorageRepo = new BatteryStorageRepository();
     _edgeRepository = new EdgeRepository();
 }
 public StationTypeRepository()
 {
     db = new BPDbContext();
 }
 public ClientApplicationRepository()
 {
     db = new BPDbContext();
 }
 public BatteryRepository()
 {
     db = new BPDbContext();
 }
 public ReservationRepository()
 {
     db = new BPDbContext();
 }
 public BatteryStorageRepository()
 {
     db = new BPDbContext();
     _batteryCollectionRepo = new BatteryCollectionRepository();
 }
Example #12
0
 public AuctionRepository()
 {
     db = new BPDbContext();
 }
 public CityRepository()
 {
     db = new BPDbContext();
 }
Example #14
0
 public BidRepository()
 {
     db = new BPDbContext();
 }
 public StationMaintenanceRepository()
 {
     db = new BPDbContext();
     _stationRepo = new StationRepository();
     _maintenanceTypeRepo = new MaintenanceTypeRepository();
 }
 public CarModelRepository()
 {
     db = new BPDbContext();
 }
 public ArchiveRepository()
 {
     db = new BPDbContext();
 }
Example #18
0
 public ArtistRepository()
 {
     db = new BPDbContext();
 }
 public MaintenanceTypeRepository()
 {
     db = new BPDbContext();
 }
Example #20
0
 public ArtworkRepository()
 {
     db = new BPDbContext();
 }
 public UserCarRepository()
 {
     db = new BPDbContext();
 }
 public LogRepository()
 {
     db = new BPDbContext();
 }
 public ArchiveStationRepository()
 {
     db = new BPDbContext();
 }
 public EdgeRepository()
 {
     db = new BPDbContext();
 }