How to configure AutoMapper if not ASP.net Application?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-05-10T16:31:41Z Indexed on 2010/05/10 16:34 UTC
Read the original article Hit count: 276

Filed under:
|
|

I'm using AutoMapper in a number of projects within my solution. These projects may be deployed independantly, across multiple servers.

In the documentation for AutoMapper it says:

If you're using the static Mapper method, configuration only needs to happen once per AppDomain. That means the best place to put the configuration code is in application startup, such as the Global.asax file for ASP.NET applications.

Whilst some of the projects will be ASP.net - most of these are class libraries / windows services.

Where should I be configuring my mappings in this case?

© Stack Overflow or respective owner

Related posts about automapper

Related posts about c#