zoukankan      html  css  js  c++  java
  • .net宏

            System.Int32 returnValue = default(System.Int32);
                
    if(tm!=null)
                {
    #if DEBUG
                    
    try
                    {
    #endif
                        
    object tempObj=SqlHelper.ExecuteScalar(tm.SqlTransaction, this.SqlStruct.CommandType, this.SqlStruct.CommandText, this.SqlStruct.SqlParameters);
                        
    if(tempObj!=null)
                            returnValue 
    = Convert.ToInt32(tempObj);
    #if DEBUG
                    }
                    
    catch (Exception err)
                    {
                        DataBaseLogArgs args 
    = new DataBaseLogArgs();
                        args.ExceptionDetails 
    = err.ToString();
                        args.CommandText 
    = this.SqlStruct.CommandText;
                        args.CommandType 
    = this.SqlStruct.CommandType;
                        args.DateTime 
    = DateTime.Now;
                        args.Command 
    = "ExecuteNonQuery";
                        args.LogType 
    = LogType.Error;
                        args.SqlParameter 
    = this.SqlStruct.SqlParameters;
                        Log.Log.WriteLog(args);
                        
    throw;
                    }
    #endif                  

                }
                
    else
                {
                    
    object tempObj=SqlHelper.ExecuteScalar(this.connectStringReadAndWrite, this.SqlStruct.CommandType, this.SqlStruct.CommandText, this.SqlStruct.SqlParameters);
                    
    if(tempObj!=null)
                        returnValue
    = Convert.ToInt32(tempObj);
                }

  • 相关阅读:
    云南9日游攻略
    移动端和边缘端的深度学习概述
    卷积、反卷积与膨胀卷积
    语义分割简述
    数据结构与算法----2总览
    python 中easydict库解析json文件
    python命令行传参解析(二)------ConfigParser
    plt.imshow与cv2.imshow显示颜色问题
    图卷积GCN
    十、mysql 数据类型
  • 原文地址:https://www.cnblogs.com/aaa6818162/p/1525545.html
Copyright © 2011-2022 走看看