コード例 #1
0
 public List <T> Select <T>(int quantity, string tableName, DbConditionBuilder condition)
 {
     if (condition == null)
     {
         return(this.Select <T>(quantity, tableName, null, null));
     }
     return(this.Select <T>(quantity, tableName, condition.Condition, condition.OrderBy, condition.Parameters));
 }
コード例 #2
0
 public int Delete(string tableName, DbConditionBuilder condition)
 {
     if (condition == null)
     {
         return(this.Delete(tableName, null, null));
     }
     return(this.Delete(tableName, condition.Condition, condition.Parameters));
 }
コード例 #3
0
 public T GetBy <T>(string tableName, DbConditionBuilder condition)
 {
     if (condition == null)
     {
         return(this.GetBy <T>(tableName, null, string.Empty, new DbParameter[0]));
     }
     return(this.GetBy <T>(tableName, condition.Condition, condition.OrderBy, condition.Parameters));
 }
コード例 #4
0
 public List <T> Remove <T>(string tableName, DbConditionBuilder condition)
 {
     if (condition == null)
     {
         return(this.Remove <T>(tableName, null, null));
     }
     return(this.Remove <T>(tableName, condition.Condition, condition.Parameters));
 }
コード例 #5
0
 public bool Exists(string tableName, DbConditionBuilder condition)
 {
     if (condition == null)
     {
         return(this.Exists(tableName, null, null));
     }
     return(this.Exists(tableName, condition.Condition, condition.Parameters));
 }