code/Athena0.0.1/mydal/MyDAL/userRoleEx.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Athena.model;
using Athena.Idal;
using MySqlSugar;
//项目名称:Athena标准开发框架
//版本:0.0.1
//开发团队成员:周庆 王露 张婷婷 陈祚松 张梦丽 艾美珍 胡凯雨 陈兰兰 夏萍萍 康文洋 易传佳
//模块及代码页功能描述:对用户角色表的数据处理
//最后修改时间:2018-01-25
//修改日志:
namespace Athena.mydal
{
public class userRoleEx : RepositoryBase<user_role>, IuserRoleEx
{
#region 对象静态实例
private static userRoleEx _instance;
public static userRoleEx Instance
{
get
{
if (_instance == null)
{
_instance = new userRoleEx();
}
return _instance;
}
}
#endregion
#region 1.基本操作
/// <summary>
/// 新增记录
/// </summary>
/// <param name="table"></param>
/// <returns></returns>
public override int insert(user_role table)
{
try
{
if (!isExistURid(table.userid, table.roleid)) //判断数据是否存在,不存在
{
return db.Insert<user_role>(table as user_role).ObjToInt();
}
else
return -1;
}
catch (Exception)
{
return -1;
}
}
/// <summary>
/// 差异更新
后面还有 254 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
