/// <summary> /// Initializes a new instance of the <see cref="SqliteBookingCrud"/> class. /// </summary> /// <param name="connection">The connection.</param> /// <param name="roomCrud">The room crud.</param> /// <param name="customerCrud">The customer crud.</param> /// <param name="employeeCrud">The employee crud.</param> public SqliteBookingCrud(DatabaseConnection connection, RoomCrud roomCrud, CustomerCrud customerCrud, EmployeeCrud employeeCrud) { this.DBConnection = connection; RoomCrud = roomCrud; CustomerCrud = customerCrud; EmployeeCrud = employeeCrud; }
public SqliteUserCrud(DatabaseConnection connection) { DBConnection = connection; users = new List<User>(); users.Add(new User("53154", "LoneWolf88")); users.Add(new User("64856", "Password1")); users.Add(new User("153153", "P@ssw0rd")); users.Add(new User("53154", "12345678")); users.Add(new User("53154", "drowssap")); }
//Created by Jens Kloster public SqliteEmployeeCrud(DatabaseConnection connection) { this.DBConnection = connection; }
//Created by Jens Kloster // public SqliteCustomerCrud(DatabaseConnection connection) { this.DBConnection = connection; }
/// <summary> /// Initializes a new instance of the <see cref="SqliteRoomCrud"/> class. /// </summary> /// <param name="connection">The connection.</param> public SqliteRoomCrud(DatabaseConnection connection, EquipmentCrud equipmentCrud) { this.DBConnection = connection; this.equipmentCrud = equipmentCrud; }