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

  • 相关阅读:
    MSSQL中with(nolock)的用法
    google reader 使用快捷键
    HTML中em标签的用法
    js正则表达式
    C#中lock关键字的用法
    面试反思
    关于IE6.7.8.FF兼容的问题
    C#中DateTime.Now.Ticks的用法和说明
    JS中eval的用法
    这两天面试时不会的笔试题
  • 原文地址:https://www.cnblogs.com/aaa6818162/p/1525545.html
Copyright © 2011-2022 走看看