In this last part of the series I wanted to talk about how to register automapper at startup of your web application, in doing so it would help speed things up with automapper.
There are many ways to do it, the easiest way is to just have a method inside Global.asax.cs file in your Application_Start like below
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable. |

