title: Exclude a class in Fluent Mappings
body: <p>Here is the current code for fluent mappings in my project</p>
  
  <pre><code>public FluentConfiguration Setup(Action&lt;MappingConfiguration&gt; mappingConfigurationAction)
      {
          Assembly mappingsAssembly = typeof(SessionFactory).Assembly;
  
          return Fluently.Configure()
              .Database(MsSqlConfiguration.MsSql2008.ConnectionString(_connection)
                            .AdoNetBatchSize(1000)
                            .ShowSql()
                            .FormatSql()
                            .Dialect&lt;NhibernateDialect&gt;
                            )
              .Mappings(m =&gt;
                            {
                                m.FluentMappings.AddFromAssembly(mappingsAssembly).Conventions.AddAssembly(
                                    mappingsAssembly).ExportTo(@"C:\Mappings");
  
  
                                m.HbmMappings.AddFromAssembly(mappingsAssembly);)
  
                                if (mappingConfigurationAction != null)
                                {
                                    mappingConfigurationAction(m);
                                }
                            }
              );
      }
  </code></pre>
  
  <p>What this does is that it includes all the classes that are in the current assembly/project into the mapping assembly. I have been trying to exclude one particular file/class from the mapping assembly without any luck.</p>
  
  <p>How can I do this?</p>
  
  <p>Thanks,
  Sandeep</p>