C#C
C#3y ago
CoderMN

✅ DB Error

Hey guys, I am working on a project and I am trying to connect it to a DB. I am following the instructions but continue to get this error message even after replacing the original text with the correct DB location.
Any thoughts or suggestions would be great!

Here is the original text to place in the PMC:
Scaffold-DbContext "Data Source=(LocalDB)\MSSQLLocalDB;AttachDBFilename=C:\C#\Database\MMABooks.mdf;Integrated security=True"Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models\DataLayer -ContextMMABooksContext -DataAnnotations –Force
Screenshot_2023-11-18_181759.png
Was this page helpful?