DAL/studentcallinforetail.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Maticsoft.DBUtility;//Please add references
using System;
using System.Data;
using System.Data.SQLite;
using System.Text;
namespace Maticsoft.DAL
{
/// <summary>
/// 数据访问类:studentcallinforetail
/// </summary>
public partial class studentcallinforetail
{
public studentcallinforetail()
{ }
#region BasicMethod
/// <summary>
/// 得到最大ID
/// </summary>
public int GetMaxId()
{
return DbHelperSQLite.GetMaxID("id", "studentcallinforetail");
}
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(int id)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("select count(1) from studentcallinforetail");
strSql.Append(" where id=@id");
SQLiteParameter[] parameters = {
new SQLiteParameter("@id", DbType.Int32,4)
};
parameters[0].Value = id;
return DbHelperSQLite.Exists(strSql.ToString(), parameters);
}
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(Maticsoft.Model.studentcallinforetail model)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("insert into studentcallinforetail(");
strSql.Append("callnoparent,stno,name,sex,callis,remark,calltime)");
strSql.Append(" values (");
strSql.Append("@callnoparent,@stno,@name,@sex,@callis,@remark,@calltime)");
strSql.Append(";select LAST_INSERT_ROWID()");
SQLiteParameter[] parameters = {
new SQLiteParameter("@callnoparent", DbType.String),
new SQLiteParameter("@stno", DbType.String),
new SQLiteParameter("@name", DbType.String),
new SQLiteParameter("@sex", DbType.String),
new SQLiteParameter("@callis", DbType.String),
new SQLiteParameter("@remark", DbType.String),
后面还有 267 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。