项目作者: jhonnyelhelou91
项目描述 :
Defines snippets and item templates.
高级语言:
项目地址: git://github.com/jhonnyelhelou91/VisualStudioHelpers.git
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
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