예제 #1
0
        // 这里写你的代码
        public static DataTable GetAllFunction(SqlConnection conn)
        {
            FuncArgs             args  = GetCurrentArgs();
            QueryOrderCollection order = new QueryOrderCollection();

            order.Add(args.cnvcFuncName.FieldName, QueryOperationSign.OrderOperation.ASC);
            return(SingleTableQuery.ExcuteQuery("tbFunc", order, conn));
        }
예제 #2
0
        internal ApiQuery(Api api, EntitySchema entity)
        {
            if (api == null)
            {
                throw new ArgumentNullException(nameof(api));
            }
            if (entity == null)
            {
                throw new ArgumentNullException(nameof(entity));
            }

            _api   = api;
            Entity = entity;

            Filters = new FilterCollection();
            Expand  = new StringCollection();
            Order   = new QueryOrderCollection();
            Output  = OutputFormat.Compact;
        }