コード例 #1
0
        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());
        }
コード例 #2
0
        public object Execute(DataStrategy dataStrategy, DynamicTable table, InvokeMemberBinder binder, object[] args)
        {
            SimpleExpression criteriaExpression = GetCriteriaExpression(binder, args, table);

            return(dataStrategy.Delete(table.GetQualifiedName(), criteriaExpression));
        }
コード例 #3
0
 public object Execute(DataStrategy dataStrategy, DynamicTable table, InvokeMemberBinder binder, object[] args)
 {
     SimpleExpression criteriaExpression = GetCriteriaExpression(binder, args, table);
     return dataStrategy.Delete(table.GetQualifiedName(), criteriaExpression);
 }