コード例 #1
0
        public Home()
        {
            GatewayClass gw = new GatewayClass();

            Get("/", (p) =>
            {
                gw.setpath("D:\\Apps\\Infusion\\--DEMO--");
                gw.login("Test Program");

                return(View["index.html"]);
            });

            Get("/customers", (p) =>
            {
                gw.setpath("D:\\Apps\\Infusion\\--DEMO--");
                gw.login("Test Program");

                gw.Open("Customer", "all_customers");
                gw.Select("all_customers");
                var count = gw.Reccount();

                return(Response.AsJson(new
                {
                    totalCount = count
                }));
            });
        }
コード例 #2
0
        public GatewayClass CreateGateway()
        {
            GatewayClass gw = new GatewayClass();

            gw.setpath("D:\\Apps\\Infusion\\--DEMO--");

            return(gw);
        }