您的请求处理可能需要比实体框架的默认命令超时(30秒)更多的时间。如果需要,可以增加命令超时,如下面的线程
使用Configuration.cs文件设置自定义超时:
internal sealed class Configuration : DbMigrationsConfiguration<ApplicationDbContext>
{
public Configuration()
{
AutomaticMigrationsEnabled = false;
ContextKey = "YourDbContext";
// New timeout in seconds
this.CommandTimeout = 60 * 5;
}
}
相似问题