-
Notifications
You must be signed in to change notification settings - Fork 1
Visual Studio
jefking edited this page Nov 10, 2014
·
7 revisions
After adding the NuGet package to your project you will see a folder called: "King.Mapper.Generator"; within this folder there is a: "King.Mapper.Generator.exe" which you can run per-compile. To do this select the properties of your project:
- Right Click on your project
- Select Properties
- Go to "Build Events"
You will see both Pre-build and Post-Build events boxes. In these you can add a task:
$(ProjectDir)\King.Mapper.Generator\King.Mapper.Generator.exe
"Server=localhost;Database=db;" C:\Code
The above example will generate the code based off of the data base connection supplied. Once it is generated, simply add it to your project to use it!