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

EFCore Snippets

Julie Lerman

|
10,875 installs
| (0) | Free
Snippets to provide commonly needed methods when writing code for EF Core
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

EFCore Snippets Visual Studio Code Extension

https://marketplace.visualstudio.com/items?itemName=julielerman.efcore-snippets

This extension contains a number of snippets that you may find useful when writing C# code against Entity Framework Core.

Features

Snippets included for your class that inherits from DbContext

ef override onconfiguring

Creates OnConfiguring override method

ef override onmodelcreating

Creates OnModelCreating override method

ef override onmodelcreating plural

Creates OnModelCreating with logic to pluralize the table names of each of the mapped entities

ef ctorDbContextOptions

Adds a new constructor to allow alternate provider for testing. Includes a parameterless ctor which you will need if you are using a custom ctor

Requirements

none

0.0.5

Testing

Enjoy!
Julie Lerman
github.com/julielerman
@julielerman

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