Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>EF Core SnippetsNew to Visual Studio Code? Get it now.
EF Core Snippets

EF Core Snippets

LewisYLiu

|
2,139 installs
| (0) | Free
Entity Framework Core snippet generator for EF Core v 2.2.0
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ef-core-snippets README

EF Core Snippets generates useful snippets that saves your time on your new project setup.

Snippets

Below is a list of all available snippets and the triggers of each one. → means Tab.

  • !dbinfo→ | for using in appsettings.json file, DB connection string.
  • !mycontext→ | for using in YourContext.cs file, context setup string.
  • !setup→ | for using in Setup.cs file, including DB and Session setup.
  • !hcdb→ | for using in HomeController.cs file, creates a dbContext var for your context.
  • !!usr→ | for using in User.cs file, creates a basic User DB model template.
  • !pwvmdl→ | for using in the password validation MODEL file, creates a template for hashed password validation.
  • !lrmdl→ | for using in the login&registration MODEL file, creates a template for holding login and registration forms on the same page.
  • !lgrghtml→ | for login and register HTML file, creates a html template for login and registration page with Bootstrap.

Release Notes

Very first version of EF Core Snippets.

1.0.0

Initial release of EF Core Snippets


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft