本文介绍了如何解决在操作完成之前经过的超时时间或服务器没有响应的错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 将在2到3秒内运行,然后我也会在c#中获得超时时间。我不知道如何解决这个问题,请帮帮我.. 我尝试过的事情: public IEnumerable< bugreportspentity> GetBugReportforGoals(Guid assigneeId,Guid projectId,DateTime?dateFrom,DateTime?dateTo,bool showDetails,Guid companyId) { using(var vConn = OpenConnection()) { var vParams = new DynamicParameters(); vParams.Add(@ DateFrom,dateFrom); vParams.Add(@ DateTo,dateTo); vParams.Add(@ ProjectId,projectId); vParams.Add(@ AssigneeId, assigneeId); vParams.Add(@ ShowGoalLevel,showDetails); vParams.Add(@ CompanyId,companyId); 返回vConn.Query< bugreportspentity>(USP_BugReport,vParams,commandType:CommandType.StoredProcedure) .ToList(); } } 使用dapper连接数据库in my proc will be run in 2 to 3 seconds only then also i'm getting time out exeception in c#. i don't knoe how to solve this,please help me..What I have tried:public IEnumerable<bugreportspentity> GetBugReportforGoals(Guid assigneeId,Guid projectId, DateTime? dateFrom, DateTime? dateTo, bool showDetails, Guid companyId) { using (var vConn = OpenConnection()) { var vParams = new DynamicParameters(); vParams.Add("@DateFrom", dateFrom); vParams.Add("@DateTo", dateTo); vParams.Add("@ProjectId", projectId); vParams.Add("@AssigneeId", assigneeId); vParams.Add("@ShowGoalLevel", showDetails); vParams.Add("@CompanyId", companyId); return vConn.Query<bugreportspentity>("USP_BugReport", vParams, commandType: CommandType.StoredProcedure) .ToList(); } }using dapper to connect with database解决方案 这篇关于如何解决在操作完成之前经过的超时时间或服务器没有响应的错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-12 09:07