title: Overriding Fluent NHibernate Automappings
body: <p>This is a Fluent NHibernate newbie question, so bear with me.</p>
  
  <p>I have a set of classes, and I'm applying the Automapping capabilities to it.</p>
  
  <p>But I need to mark one of the properties of one of the techniques with a Unique constraint.</p>
  
  <p>In the Fluent Wiki, it says </p>
  
  <blockquote>
    <p>Sometimes it's necessary to make
    slight changes to a specific entity,
    without wishing to affect anything
    else; you can do that with the with
    Override method.</p>
    
    <p>.Override(map => {<br>
    map.HasMany(x => x.Products)
        .Cascade.All(); });</p>
  </blockquote>
  
  <p>But I can't figure out what object to apply the .Override method to.</p>
  
  <p>Right now, I have </p>
  
  <p>AutoPersistenceModel returnModel = AutoMap.AssemblyOf()</p>
  
  <p>But the AutoPersistenceModel object does not have an Override method.</p>
  
  <p>Can someone give me some simple sample code to walk me through this, or point me to some links with some examples?</p>
  
  <p>Thanks.</p>