Sry.Solution.Data/Roles_Purview_RealationsData.Designer.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行库版本:2.0.50727.1882
//
// 开发人员: Sry
// 版权所有: Sry
// 代码用途: 数据访问层
// 创建时间:2014年07月02日 04时06分
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System.Data.SqlClient;
using System.Data;
using Sry.Entity;
using Sry.Framework.Dal;
namespace Sry.Data{
/// <summary>
/// IRoles_Purview_RealationsData接口 author:Sry
/// </summary>
public partial interface IRoles_Purview_RealationsData{
int Add(Roles_Purview_Realations instance);
bool Delete(Roles_Purview_Realations instance, int option);
bool Update(Roles_Purview_Realations instance, int option);
DataSet Select(Roles_Purview_Realations instance, int option, ref QueryParams pageParam);
Roles_Purview_Realations Get(Roles_Purview_Realations instance, int option);
}
public partial class Roles_Purview_RealationsData{
public int Add(Roles_Purview_Realations instance){
string sql = @"insert into [Roles_Purview_Realations] (
[rpr_RolesID],[rpr_PurviewID])
values (@rpr_RolesID,@rpr_PurviewID);
select SCOPE_IDENTITY()";
SqlParameter[] sps = new SqlParameter[] {
new SqlParameter("@rpr_RolesID",instance.rpr_RolesID),
new SqlParameter("@rpr_PurviewID",instance.rpr_PurviewID)};
try{
int size=0;
size = int.Parse(SqlHelper.ExecuteScalar(SQLConfig.MainLink,CommandType.Text,sql,sps).ToString().Trim());
if(size==0){
return -1;
}
return size;
}
catch (SqlException ex) {
throw;
};
}
public bool Delete(Roles_Purview_Realations instance,int option) {
SqlParameter[] sps = null;
string sql = string.Empty;
switch (option){
case 0:
sps = new SqlParameter[] { new SqlParameter("@rpr_RolesID",instance.rpr_RolesID) };
sql = "delete from [Roles_Purview_Realations] where [rpr_RolesID] = @rpr_RolesID";
break;
后面还有 118 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。