当我试图在c#中运行允许用户登录和注册帐户的后端应用程序时,出现以下错误:
Microsoft.EntityFrameworkCore.Database.Command: Error: Failed executing DbCommand (3ms) [Parameters=[], CommandType='Text', CommandTimeout='60']
IF SERVERPROPERTY('EngineEdition') <> 5
BEGIN
ALTER DATABASE [master] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
END;
fail: Microsoft.EntityFrameworkCore.Database.Command[20102]
Failed executing DbCommand (3ms) [Parameters=[], CommandType='Text', CommandTimeout='60']
IF SERVERPROPERTY('EngineEdition') <> 5
BEGIN
ALTER DATABASE [master] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
END;
Exception thrown: 'Microsoft.Data.SqlClient.SqlException' in Microsoft.EntityFrameworkCore.Relational.dll
Exception thrown: 'System.AggregateException' in System.Private.CoreLib.dll
暂无答案!
目前还没有任何答案,快来回答吧!