A connection was successfully established with the server, but then an error occurred during the log

what is the issue in my connection string
Scaffold-Dbcontext "Server=.;Database=authdb=User Id=sa;Password=aptech;TrustServerCertificate=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
Scaffold-Dbcontext "Server=.;Database=authdb=User Id=sa;Password=aptech;TrustServerCertificate=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
8 Replies
Sehra
Sehra2w ago
authdb=User
^
authdb=User
^
Technical Developer
The following file(s) already exist in directory 'C:\Users\asp.APTECHNN2\source\repos\Authentication\Models': User.cs. Use the Force flag to overwrite these files. now what
Sehra
Sehra2w ago
do what it says
Technical Developer
how to force flags
Sehra
Sehra2w ago
-Force
Technical Developer
thanks qeury solved
Sehra
Sehra2w ago
$close
MODiX
MODiX2w ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?