Model/ADModule/ADContentList_Model.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* 设计者:LHY 2013-02-26
* 建议请邮:869067911@qq.com
* */
using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
namespace Model.ADModule
{
public class ADContentList_Model:Model.Base.ModelBase
{
public ADContentList_Model()
{
TableName = "ADContentList";
PKey = "ADContentListID";
PKeyDataType = typeof(System.Int32);
}
public override object PKeyValue
{
get
{
return M_ADContentListID;
}
set
{
M_ADContentListID = (System.Int32)value;
}
}
public override string AddSQL
{ get
{
return @"INSERT INTO [ADContentList]
( [ADID],[ADText],[PicUrl],[FlashUrl],[ToolTip],[LinkUrl],[Description]) VALUES (@ADID,@ADText,@PicUrl,@FlashUrl,@ToolTip,@LinkUrl,@Description);select @@identity ";}}
public override string UpdateSQL
{ get
{
return @"UPDATE [ADContentList]
SET [ADID]=@ADID,[ADText]=@ADText,[PicUrl]=@PicUrl,[FlashUrl]=@FlashUrl,[ToolTip]=@ToolTip,[LinkUrl]=@LinkUrl,[Description]=@Description WHERE [ADContentListID]=@ADContentListID";}}
public override SqlParameter[] ParamsForAdd
{ get
{
List<SqlParameter> list = GetNotKeyParams();return list.ToArray();}}
public override SqlParameter[] ParamsForUpdate
{ get
{
List<SqlParameter> list = GetNotKeyParams();
list.Add(new SqlParameter("@ADContentListID", M_ADContentListID));
return list.ToArray();}}
public List<SqlParameter> GetNotKeyParams()
{
List<SqlParameter> list = new List<SqlParameter>();
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
