public bool ExistUser() { // if ((oMySql.exec_sql_no("Select count(*) from Brochure Where UserID='" + this.ID + "' And CompanyID='" + this.CompanyID + "'")) == 0) if ((oMySql.exec_sql_no("Select count(*) from user Where User='******'")) == 0) { return(false); } else { return(true); } }
public bool if_exist() { if (oMySql.exec_sql_no("Select count(*) from OrderDetail Where OrderID=" + this.OrderID + " And ProductID='" + this.ProductID + "'") == 0) { return(false); } return(true); }
public bool Exists() { if ((oMySql.exec_sql_no(String.Format("Select count(*) from {0} Where TeacherID='{1}'", TableName, this._ID)) == 0)) { return(false); } else { return(true); } }