title: Fluent NHibernate IList<string>
body: <p>I have the following class:</p>
  
  <pre><code>public class Address
  {
      public virtual int Id { get; private set; }
  
      public virtual IList&lt;string&gt; AddressLines { get; set; }
  
      public virtual string CityOrTown { get; set; }
  
      public virtual string County { get; set; }
  
      public virtual string Postcode { get; set; }
  
      public virtual string Country { get; set; }
  
      public virtual Member Member { get; set; }
  
      public Address()
      {
          AddressLines = new List&lt;string&gt;();
      }
  
      public virtual void AddAddressLine(string addressLine)
      {
          AddressLines.Add(addressLine);
      }
  }
  </code></pre>
  
  <p>and the following mapping class:</p>
  
  <pre><code>public AddressMap()
  {
      Id(x =&gt; x.Id);
      HasMany(x =&gt; x.AddressLines).Element("AddressLine");
      Map(x =&gt; x.CityOrTown);
      Map(x =&gt; x.County);
      Map(x =&gt; x.Postcode);
      Map(x =&gt; x.Country);
      References(x =&gt; x.Member);
  }
  </code></pre>
  
  <p>The table 'addresslines' is created with two columns 'Address_Id' and 'AddressLine' with a Foreign Key to the 'address' table. </p>
  
  <p>For some reason when an address is saved the 'AddressLines' collection is not persisted to the database;</p>
  
  <p>Am I missing something?</p>
  
  <p>There doesn't seem to be a great deal of information out there about mapping IList. I am aware that this didn't use to be possible because string is value type not an entity type, but I am led to believe this should now be possible?</p>