我使用linq授权连接到数据库,最近我发现了以下问题,当我打开网站并登录时,我让页面空闲了大约10分钟,点击了网站中连接到数据库的链接。但是,到sql server 2005的连接似乎已断开,它将自动重新连接到数据库。在这个过程中,它将抛出以下异常:
System.Data.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> System.Data.SqlClient.Sql