コード例 #1
0
        public void QueryListTest()
        {
            Console.WriteLine("Start execution QueryListTest");
            IController ic = ControllerFactory.CreateController();

            SqlParameter[] pars = new SqlParameter[] { new SqlParameter("@Sort", SqlDbType.Int)
                                                       {
                                                           Value = 2
                                                       } };
            sys.List <ActionGroup> list = ic.Query <ActionGroup>("SELECT * FROM [ActionGroup] WHERE [Sort]=@Sort ;", pars);
        }