public int select_for_updatexulie(Model.tiaominfo tm)
{
CommandType ct = CommandType.Text;
string sql = "select 条目ID from 作品条目表 where 作品ID=@作品ID"; 
SqlParameter[] paras = new SqlParameter[]{
new SqlParameter("@作品ID",SqlDbType.Int),
};
paras[0].Value = tm.zuopId;
int a = Convert.ToInt32(DB.ExcuteScalar(ct, sql, paras));
return a;
}

 

public int insert_tm_DLL(Model.tiaominfo tm)
{

 CommandType ct = CommandType.StoredProcedure;
SqlParameter[] par = new SqlParameter[] {
new SqlParameter("@条目ID",SqlDbType.Int),
new SqlParameter( "@主题",SqlDbType.NVarChar,100),
new SqlParameter( "@介绍",SqlDbType.NVarChar,200)
};
par[0].Value = tm.tmId;
par[1].Value = tm.zhuti;
par[2].Value = tm.jieshao;
int a = DB.ExcuteNonQueryReturn(ct, "更新_条目", par);
return a;
}

相关文章:

  • 2021-09-18
  • 2021-12-19
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案