public static bool Pbupdate(publisher pub)
{
bool result=false;
result=publisher.Incommon("proc_pblish_update",pub);
return result;
} public static bool PbDelete(string txtName)
{
bool result=false;
SqlParameter[] paras=new SqlParameter[1];
paras[0]=new SqlParameter("@PbName",SqlDbType.VarChar,50);
paras[0].Value=txtName; result=DB.Excuteque("proc_pblish_delete",paras); return result;
}
知道是关于数据的删除和编辑..但是希望到每步的注解,本人是初学者~~谢谢各位达人们了~!!
{
bool result=false;
result=publisher.Incommon("proc_pblish_update",pub);
return result;
} public static bool PbDelete(string txtName)
{
bool result=false;
SqlParameter[] paras=new SqlParameter[1];
paras[0]=new SqlParameter("@PbName",SqlDbType.VarChar,50);
paras[0].Value=txtName; result=DB.Excuteque("proc_pblish_delete",paras); return result;
}
知道是关于数据的删除和编辑..但是希望到每步的注解,本人是初学者~~谢谢各位达人们了~!!
解决方案 »
- WPF应用程序如何重启当前的Application
- int i =1;char k = (char)i;用System.Console.WriteLine(k);输出K为乱码了,谁能帮我解释一下,并给个正确的方法
- 在C#中,窗口最小化后如何保持变量的值不变
- 如果创建的个button的二维数组,鼠标定位到button时,怎么获取该button的下标?
- 如何调用配置数据源那个组件?
- 关于IPAddress.Any 急!请求帮助!
- 类从文件中删除,调试出错?????
- 为什么在win2003中就会出现不能连接Sql的问题呢?请求赐教!
- C#windows应用台仿qq登陆注册程序求大神帮忙
- C# 操作EXCEL 问题
- List<T>使用默认排序出错,请帮忙看看。
- 打完SP1补丁后没有[ADO.NET 数据服务]
{
bool result=false;
// 调用publisher里面的Incommon方法来执行存储过程,存储过程名为proc_pblish_update 你的封装方法参数参数为 pub,publisher这个里面应该还有对应的各种操作等 下面删除 同理
result=publisher.Incommon("proc_pblish_update",pub);
return result;
}public static bool PbDelete(string txtName)
{
bool result=false;
SqlParameter[] paras=new SqlParameter[1];
paras[0]=new SqlParameter("@PbName",SqlDbType.VarChar,50);
paras[0].Value=txtName;result=DB.Excuteque("proc_pblish_delete",paras);return result;
}