initialize-ef-core-dbcontext
Installation
SKILL.md
Initialize EF Core DbContext
Set up Entity Framework Core DbContext using EF Core Power Tools CLI.
Pre-requisite
- Ensure the Git working tree is clean:
If the working directory is not clean, stop execution.git status
Steps
- Use EF Core Power Tools CLI to generate the DbContext:
Note: Use the correct connection string according to the project requirements.efcpt "Server=(localdb)\MSSQLLocalDB;Initial Catalog=ContosoUniversity;Trusted_Connection=True;Encrypt=false" mssql