Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 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);
     }
 }