title: How can you initialize a map in a DAL project?
body: <p>I've got a simple solution structure of API project, DAL project (Class Library), shared Models project. Inside the DAL project I've created a custom map for one of my POCO's:</p>
  
  <pre><code>internal class AssumptionsMap : EntityMap&lt;Assumptions&gt;
  {
      internal AssumptionsMap()
      {
          Map(a =&gt; a.Rate).ToColumn("InitialRate");
          Map(a =&gt; a.Credit).ToColumn("CredValue");
          Map(a =&gt; a.CreditType).ToColumn("CredType");
      }
  }
  </code></pre>
  
  <p>I've created this in the DAL project (Class Library) as this is where it will need to be used in the repository which calls off to get the Assumptions. However, where do I add this:</p>
  
  <pre><code>FluentMapper.Initialize(cfig =&gt;
  {
      cfig.AddMap(new AssumptionsMap());
  });
  </code></pre>
  
  <p>My DAL project doesn't have an 'App_Start' as that's in the API project, so how can this map be initialized? I feel like I'm missing something obvious here.</p>
  
  <p>My current attempt is to simply use a static constructor on the <code>QueryStore</code> class I've created that houses all my dapper queries. However, nothing seems to happen when doing this:</p>
  
  <pre><code>public class QueryStore
  {
      public const string GetSomething = @"some query";
      // more queries
  
      static QueryStore()
      {
          FluentMapper.Initialize(cfig =&gt;
          {
              cfig.AddMap(new CommonAssumptionsMap());
          });
      }
  }
  </code></pre>