Ejemplo n.º 1
0
        /// <summary>
        /// 检测顶级节点是否车型
        /// </summary>
        public bool IsVehicle(int id)
        {
            Func <SqlConnection, bool> action = (connection) => DALCategoryTag.IsVehicle(connection, id);

            return(dbManager.Execute(action));
        }
Ejemplo n.º 2
0
        public IEnumerable <CategoryTagModel> SelectByPID(int parentId, int isParent, string orderBy)
        {
            Func <SqlConnection, IEnumerable <CategoryTagModel> > action = (connection) => DALCategoryTag.SelectByPID(connection, parentId, isParent, orderBy);

            return(dbManager.Execute(action));
        }
Ejemplo n.º 3
0
        public IEnumerable <ZTreeModel> SelectByTree()
        {
            Func <SqlConnection, IEnumerable <ZTreeModel> > action = (connection) => DALCategoryTag.SelectByTree(connection);

            return(dbManager.Execute(action));
        }
Ejemplo n.º 4
0
        public bool UpdateById(CategoryTagModel model)
        {
            Func <SqlConnection, bool> action = (connection) => DALCategoryTag.UpdateById(connection, model);

            return(dbManager.Execute(action));
        }
Ejemplo n.º 5
0
        public IEnumerable <CategoryTagModel> SelectById(int?id, int?parentId)
        {
            Func <SqlConnection, IEnumerable <CategoryTagModel> > action = (connection) => DALCategoryTag.SelectById(connection, id, parentId);

            return(dbManager.Execute(action));
        }