mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 01:05:27 +08:00 
			
		
		
		
	- 优化 使用 Sqlite 的项目当未选择 x86/x64 时的友好错误提示
This commit is contained in:
		@@ -138,8 +138,8 @@ namespace FreeSql.Sqlite
 | 
				
			|||||||
            {
 | 
					            {
 | 
				
			||||||
                if (obj.Value == null)
 | 
					                if (obj.Value == null)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    if (_pool.SetUnavailable(new Exception("连接字符串错误")) == true)
 | 
					                    if (_pool.SetUnavailable(new Exception("连接字符串错误,或者检查项目属性 > 生成 > 目标平台:x86 | x64")) == true)
 | 
				
			||||||
                        throw new Exception($"【{this.Name}】连接字符串错误,请检查。");
 | 
					                        throw new Exception($"【{this.Name}】连接字符串错误,请检查。或者检查项目属性 > 生成 > 目标平台:x86 | x64");
 | 
				
			||||||
                    return;
 | 
					                    return;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user