public Employee(string name, string id, string mail, long phoneNo, int age, string password, string post) { this.name = name; this.id = id; this.mail = mail; this.phoneNo = phoneNo; this.age = age; this.post = post; Connection.performConnection("INSERT INTO shophope.employeetable(userName,passWord,age,nIC,emailAdress,phoneNum,post) VALUES('" + name + "','" + password + "','" + age + "','" + id + "','" + mail + "','" + phoneNo + "','" + post + "');"); }
public Product(int quantity, int warningLevel, string name, string catagory, string brand, double price, double weight) { //this.id = id; this.quantity = quantity; this.warningLevel = warningLevel; this.name = name; this.catagory = catagory; this.brand = brand; this.price = price; this.weight = weight; this.warningLevelReached = false; Connection.performConnection("INSERT INTO shophope.stocks(quantity,warningLevel,name,catagory,brand,price,weight) VALUES('" + quantity + "','" + warningLevel + "','" + name + "','" + catagory + "','" + brand + "','" + price + "','" + weight + "');"); }