public object Execute(DataStrategy dataStrategy, DynamicTable table, InvokeMemberBinder binder, object[] args) { var deletedCount = 0; if (args.Length == 0) { deletedCount = dataStrategy.Delete(table.GetQualifiedName(), new SimpleEmptyExpression()); } if (args.Length == 1 && args[0] is SimpleExpression) { deletedCount = dataStrategy.Delete(table.GetQualifiedName(), (SimpleExpression)args[0]); } return(deletedCount.ResultSetFromModifiedRowCount()); }
public object Execute(DataStrategy dataStrategy, DynamicTable table, InvokeMemberBinder binder, object[] args) { SimpleExpression criteriaExpression = GetCriteriaExpression(binder, args, table); return(dataStrategy.Delete(table.GetQualifiedName(), criteriaExpression)); }
public object Execute(DataStrategy dataStrategy, DynamicTable table, InvokeMemberBinder binder, object[] args) { SimpleExpression criteriaExpression = GetCriteriaExpression(binder, args, table); return dataStrategy.Delete(table.GetQualifiedName(), criteriaExpression); }