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

  • 相关阅读:
    短信猫软件的实现(C#)<八>7bitPDU的解码
    短信猫软件的实现(C#)<七>短信猫(简化测试版)实现
    短信猫软件的实现(C#)<十一>软件实现(完结篇)
    我的EDA课程设计 Verilog HDL 自动售票机的实现
    Linux JNI(1)
    Notes
    Linux 线程属性
    Linux shared lib
    Linux 几个调试命令
    Java工具
  • 原文地址:https://www.cnblogs.com/aaa6818162/p/1525545.html
Copyright © 2020-2023  润新知