OA.DAL/FileTypeInfoService.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//============================================================
// Producnt name: TenXiang.Code
// Coded by: hotboart
// Auto generated at: 2014/1/5 11:45:52
//============================================================
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using OA.Models;
namespace OA.DAL
{
public static partial class FileTypeInfoService
{
//Add Mothed Start
public static readonly string InsertSql = "INSERT FileTypeInfo (FileTypeName, FileTypeImage, FileTypeSuffix)VALUES (@FileTypeName, @FileTypeImage, @FileTypeSuffix)";
public static readonly string UpdateSql = "Update FileTypeInfo set FileTypeName=@FileTypeName, FileTypeImage=@FileTypeImage, FileTypeSuffix=@FileTypeSuffix where FileTypeId=@FileTypeId";
public static readonly string DeleteSql = "Delete FROM FileTypeInfo where FileTypeId=@FileTypeId";
public static readonly string SelectSql = "Select * FROM FileTypeInfo";
public static readonly string SelectSqlById = "Select * FROM FileTypeInfo where FileTypeId =@FileTypeId";
public static int AddFileTypeInfo(FileTypeInfo fileTypeInfo)
{
string sql = InsertSql;
SqlParameter[] para = new SqlParameter[]
{
new SqlParameter("@FileTypeName",fileTypeInfo.FileTypeName), new SqlParameter("@FileTypeImage",fileTypeInfo.FileTypeImage), new SqlParameter("@FileTypeSuffix",fileTypeInfo.FileTypeSuffix)
} ;
return DBHelper.ExecNonQuery(sql, para);
}
public static int UpdateFileTypeInfo(FileTypeInfo fileTypeInfo)
{
string sql = UpdateSql;
SqlParameter[] para = new SqlParameter[]
{
new SqlParameter("@FileTypeId",fileTypeInfo.FileTypeId), new SqlParameter("@FileTypeName",fileTypeInfo.FileTypeName), new SqlParameter("@FileTypeImage",fileTypeInfo.FileTypeImage), new SqlParameter("@FileTypeSuffix",fileTypeInfo.FileTypeSuffix)
} ;
return DBHelper.ExecNonQuery(sql, para);
}
public static int DelFileTypeInfo(FileTypeInfo fileTypeInfo)
{
string sql = DeleteSql;
SqlParameter[] para = new SqlParameter[]
{
new SqlParameter("@FileTypeId",fileTypeInfo.FileTypeId)
} ;
return DBHelper.ExecNonQuery(sql, para);
}
public static IList< FileTypeInfo > GetAllList()
{
string sql = SelectSql;
return GetListBySql(sql);
}
后面还有 36 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。