public static void delModelReturn(string performanceId,DateTime? effectiveDate=null)
{ using (SqlConnection con = GetEditorConnection())
{
con.Open();
using (SqlCommand command = con.CreateCommand())
{
SqlTransaction st = con.BeginTransaction();
command.Transaction = st;
try
{
command.CommandText = "delModelReturn";
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add(new SqlParameter("@p_PerformanceId", performanceId));
if (!effectiveDate.HasValue)
{
command.Parameters.Add(new SqlParameter("@p_EffectiveDate", DBNull.Value));
}
else
{
command.Parameters.Add(new SqlParameter("@p_EffectiveDate",effectiveDate));
}
command.ExecuteNonQuery();
st.Commit();
}
catch (Exception ex)
{
st.Rollback();
throw new Exception(ex.Message);
} }
con.Close(); }
}

最新文章

  1. cf593c
  2. kali安装java1.7
  3. spring mvc <mvc:default-servlet-handler /> 。
  4. Socket网络编程--FTP客户端
  5. PHP 遍历目录
  6. 多个div 一行显示的处理方式
  7. poj1222 EXTENDED LIGHTS OUT
  8. Junit单元测试学习笔记一
  9. Java Notes 00 - Singleton Pattern(单例总结)
  10. [cocos2d-x]针对不同的设备,选取不同的自适应图片
  11. emacs 只读打开文件
  12. python数组并集交集补集
  13. hdfs核心主件服务的启停方式
  14. python阅读目录
  15. 牛客练习赛31 D神器大师泰兹瑞与威穆
  16. http协议的学习
  17. Linux下新建服务
  18. 【java】详解集合
  19. create-react-app 使用详解
  20. Web(click and script) 与 Web(HTTP/HTML)协议区别

热门文章

  1. Hadoop、spark
  2. 在SuSE安装wifidog认证服务器和网关
  3. Dozer映射
  4. Python3 编程第一步_关键字end
  5. JRebel for IntelliJ
  6. 来聊聊JavaScript中的防抖和节流
  7. epoll 数据库安装以及相关概念
  8. 什么是MapReduce?
  9. 《九阴真经:iOS黑客攻防秘籍》新书发布
  10. C学习笔记-字符串的格式化输出和输入