Exemplo n.º 1
0
        public object Execute(DataStrategy dataStrategy, DynamicTable table, InvokeMemberBinder binder, object[] args)
        {
            SimpleExpression criteriaExpression = null;

            if (args.Length == 1 && args[0] is SimpleExpression)
            {
                criteriaExpression = args[0] as SimpleExpression;
            }

            var columName = binder.Name.Substring(3);
            var data      = dataStrategy.Min(table.GetQualifiedName(), columName, criteriaExpression);

            return(data);
        }