コード例 #1
0
        public static List <Stylist> GetAll()
        {
            string        orderBy = "id"; string order = "ASC";
            List <Object> objects = new List <Object>()
            {
            };

            DB.OpenConnection();
            DB.SetCommand(@"SELECT * FROM " + _tableName + " ORDER BY " + orderBy + " " + order + ";");
            DB.ReadTable(DelegateGetAll, objects);
            DB.CloseConnection();
            return(objects.Cast <Stylist>().ToList());
        }