DAL/SystemconfigurationService.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using Models;
using DBHelp;
using System.Data;
using System.Data.SqlClient;

namespace DAL
{
    public class SystemconfigurationService
    {
        /// <summary>
        /// 增加
        /// </summary>
        /// <param name="Systemconfiguration">Systemconfiguration实体对象</param>
        /// <returns>bool值,判断是否操作成功</returns>
        public bool add(Systemconfiguration model)
        {
            SqlParameter[] param = new SqlParameter[]
            {
                new SqlParameter ("@Config_MenuType",model.Config_MenuType),
                new SqlParameter ("@Config_Path",model.Config_Path)
            };
           return Helper.ExecuteNonQuery("Systemconfiguration_Add",param);
        }
        /// <summary>
        /// 增加
        /// </summary>
        /// <param name="Systemconfiguration">Systemconfiguration实体对象</param>
        /// <returns>int值,返回自增ID</returns>
        public int addReturnId(Systemconfiguration model)
        {
            SqlParameter[] param = new SqlParameter[]
            {
                new SqlParameter ("@Config_MenuType",model.Config_MenuType),
                new SqlParameter ("@Config_Path",model.Config_Path)
            };
           return Convert.ToInt32(Helper.ExecuteScalar ("Systemconfiguration_AddReturnId",param));
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="Systemconfiguration">Systemconfiguration实体对象</param>
        /// <returns>bool值,判断是否操作成功</returns>
        public bool change(Systemconfiguration model)
        {
            SqlParameter[] param = new SqlParameter[]
            {
                new SqlParameter ("@Config_ID",model.Config_ID),
                new SqlParameter ("@Config_MenuType",model.Config_MenuType),
                new SqlParameter ("@Config_Path",model.Config_Path)
            };
           return Helper.ExecuteNonQuery("Systemconfiguration_Change",param);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id">主键Id</param>
        /// <returns>bool值,判断是否操作成功</returns>
        public bool delete(int Id)
后面还有 86 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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