title: Orchard Project Module getting error: No persister for: SomePartRecord
body: <p>I am trying to create a simple setting in Orchard that appears in the settings page.   I have created a module which is adding my ContentPart to the settings page and is correctly creating a table in the database but every time the cshtml file is rendered and the property of the record is accessed I keep getting the following NHibernate Record.</p>
  
  <p>No persister for: TekFlow.Contact.TekFlowEmailSettingsPartRecord.
  (TekFlow.Contact is the Module name)</p>
  
  <p>Below is all of the code that I am using to create the Record/Part/Handler/Driver needed in Orchard.</p>
  
  <pre><code> public class TekFlowEmailSettingsPartDriver : ContentPartDriver&lt;TekFlowEmailSettingsPart&gt;
  {
      public TekFlowEmailSettingsPartDriver()
      {
          T = NullLocalizer.Instance;
      }
  
      public Localizer T { get; set; }
  
      protected override DriverResult Editor(TekFlowEmailSettingsPart part, dynamic shapeHelper)
      {
          return ContentShape("Parts_TekFlowEmailSettings_Edit",
              () =&gt; shapeHelper.EditorTemplate(TemplateName: "Parts.TekFlowEmailSettings", Model: part, Prefix: Prefix)
                  );
      }
  
      protected override DriverResult Editor(TekFlowEmailSettingsPart part, Orchard.ContentManagement.IUpdateModel updater, dynamic shapeHelper)
      {
          bool success = updater.TryUpdateModel(part, Prefix, null, null);
          return Editor(part, shapeHelper);
      }
  }
  
  [UsedImplicitly]
  public class TekFlowEmailSettingsPartHandler : ContentHandler
  {
      public TekFlowEmailSettingsPartHandler(IRepository&lt;TekFlowEmailSettingsPartRecord&gt; repository)
      {
          Filters.Add(new ActivatingFilter&lt;TekFlowEmailSettingsPart&gt;("Site"));
          Filters.Add(StorageFilter.For(repository));
      }
  }
  
   public class TekFlowEmailSettingsPartRecord : ContentPartRecord {
       public virtual string SendToEmail { get; set; }
  }
  
   public class TekFlowEmailSettingsPart : ContentPart&lt;TekFlowEmailSettingsPartRecord&gt;
   {
       public string SendToEmail
       {
           get { return Record.SendToEmail; }
           set { Record.SendToEmail = value; }
       }
   }
  
   public class TekFlowEmailSettingsDataMigration : DataMigrationImpl
   {
       public int Create()
       {
           SchemaBuilder.CreateTable("TekFlowEmailSettingsPartRecord",
               table =&gt; table
                   .ContentPartRecord()
                   .Column&lt;string&gt;("SendToEmail", c =&gt; c.WithDefault("SomeEmail@somedomain.com").WithLength(255))
               );
  
  
           ContentDefinitionManager.AlterPartDefinition(
               typeof(TekFlowEmailSettingsPart).Name, cfg =&gt; cfg.Attachable());
  
           return 1;
       }
   }
  </code></pre>