KingNET.Business/Adm/Adm_RightsBLL.cs

(开头部分) 13KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by CodeSmith Template.
//     Creater: administrator
//     Date:    2013/7/12 10:24
//     Version: 2.0.0.0
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Collections.Generic;
using KingNET.Param;
using KingNET.Entity.DBEntity;
using DMSFrame;
using KingNET.Entity.ViewEntity;
using KingNET.Param.Adm;
using KingNET.Entity.ResultEntity.Adm;

namespace KingNET.Business
{
    /// <summary>
    ///  处理层
    /// </summary>
    public class Adm_RightsBLL
    {
        #region 增删改查
        /// <summary>
        /// 添加实体
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public bool Insert(Adm_Rights entity)
        {
            return DMS.Create<Adm_Rights>().Insert(entity) > 0;
        }

        /// <summary>
        /// 更新实体
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public bool Update(Adm_Rights entity)
        {
            return DMS.Create<Adm_Rights>().Edit(entity, q => q.RightsID == entity.RightsID) > 0;
        }

        /// <summary>
        /// 删除对象
        /// </summary>
        /// <param name="rightsID"></param>
        /// <param name="userID"></param>
        /// <returns></returns>
        public bool Del(DelParam param)
        {
            return DMS.Create<Adm_Rights>().Delete(q => q.RightsID == param.ID) > 0;
        }

后面还有 242 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。