Enterprise Library- Data Block使用oracle存储过程,字符串参数传入值为""时出现问题的解决[4]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

);
                    }
                    
break;
                    
//                case DbType.AnsiString:
                    
//                case DbType.AnsiStringFixedLength:
                    
//                case DbType.String:
                    
//                case DbType.StringFixedLength:                
                    
//                    // for empty string, set it to DBNull
                    
//                    if ((value == null) || (!(value is DBNull)) && ((string)value).Length == 0) 
                    
//                    {
                    
//                        param.Value = Convert.DBNull;
                    
//                    }
                    
//

本文关键:Enterprise Library- Data Block使用oracle存储过程,字符串参数传入值为""时出现问题的解决
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top