Beispiel #1
0
        public string Delete()
        {
            string where = Condition();

            if (string.IsNullOrEmpty(where))
            {
                return(template.Delete());
            }

            return(template.Delete(where));
        }
Beispiel #2
0
        public string DELETE(DataRow row, IPrimaryKeys primaryKey)
        {
            var L1 = new List <ColumnPair>();

            foreach (var column in primaryKey.Keys)
            {
                L1.Add(new ColumnPair(column, row[column]));
            }

            return(template.Delete(string.Join <ColumnPair>(" AND ", L1)));
        }
Beispiel #3
0
 public string DELETE(IEnumerable <IColumn> columns)
 {
     return(template.Delete(primaryWhere(columns)));
 }
Beispiel #4
0
 protected string deleteQuery()
 {
     return(template.Delete(locator.ToString()));
 }