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);
                }

  • 相关阅读:
    海康相机抓图使用OpencvSharp转换成Mat格式
    海康工业相机MVS抓图图像转HObject格式
    golang 图片上传HTTP服务
    python 程序打包 pyinstaller
    海康工业相机 MVS 抓图并转为Mat格式,支持彩色相机
    Qt QImage 与 Opencv Mat转换
    Qt 延时函数
    C/C++ 简单的Log日志
    Opencv3——通道分离与合并
    Opencv——Mat像素算术操作
  • 原文地址:https://www.cnblogs.com/aaa6818162/p/1525545.html
Copyright © 2011-2022 走看看