SqlSugar.SqlSugarException: 中文提示 : 连接数据库过程中发生错误,检查服务器是否正常连接字符串是否正确,错误信息:连接未关闭。 连接的当前状态为正在连接。DbType="SqlServer";ConfigId="". English Message : Connection open error . 连接未关闭。 连接的当前状态为正在连接。DbType="SqlServer";ConfigId="" at SqlSugar.Check.Exception(Boolean isException, String message, String[] args) at SqlSugar.AdoProvider.CheckConnectionAsync() at SqlSugar.SqlServerProvider.GetCommandAsync(String sql, SugarParameter[] parameters) at SqlSugar.AdoProvider.GetDataReaderAsync(String sql, SugarParameter[] parameters) at SqlSugar.QueryableProvider`1.GetDataAsync[TResult](KeyValuePair`2 sqlObj) at SqlSugar.QueryableProvider`1._ToListAsync[TResult]() at SqlSugar.QueryableProvider`1.FirstAsync() at Vue3View.Application.Users.UserService.GetUserById(Int64 id) in F:\\迅雷下载\\vue3-view-master\\Vue3View\\Vue3View.Application\\Users\\UserService.cs:line 196 at Vue3View.Controllers.UserController.GetUser() in F:\\迅雷下载\\vue3-view-master\\Vue3View\\Vue3View\\Controllers\\UserController.cs:line 121 at lambda_method19(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
解决
偶发性错误,线程安全 ,偶发错误 – SqlSugar 5x – .NET果糖网
评论前必须登录!
注册