JH
jhonnyelhelou91/VisualStudioHelpers
Defines snippets and item templates.
Visual Studio Helpers
Defines snippets and item templates.
Getting Started
- Copy the files
git clone 'https://github.com/jhonnyelhelou91/VisualStudioHelper.git' 'C:\git\VisualStudio'
Include Item Templates
- Copy Zipped Item Templates to your visual studio directory
%USERPROFILE%\Documents\Visual Studio 2017\Templates\Item Templates\Visual C#\ - Restart Visual Studio
Include Snippets
- Open Tools > Code Snippets Manager or
Ctrl + K, Ctrl + B - Select C# from the dropdown
- Add directory
C:\git\Visual Studio\Snippets
Prerequisites
- Visual Studio
Item Templates
Entity Type Configuration
- Add new item in your solution
- Replace configuration name with type name (i.e. Model)
- Include namespace for Model
- Configure Model
Snippets
AutoMapper
Create a mapping for your model
Keyword `map`
If audit is enabled, Create a mapping for your audit model
Keyword `auditmap`
DbSet
Create a dbset for your model
Keyword `dbset`
If audit is enabled, Create a dbset for your audit model
Keyword `auditdbset`
On this page
Contributors
MIT License
Created March 23, 2019
Updated March 23, 2019