title: Fluent Nhibernate and DynamicUpdate
body: <p>I have NH mapping</p>
  
  <pre><code>public class TblContentMap : ClassMap&lt;TblContent&gt; {
  
          public TblContentMap() {
              Table("tbl_content");
              DynamicUpdate();
  
              Id(x =&gt; x.Id).GeneratedBy.Identity().Column("id");
  ....
              Map(x =&gt; x.ArticleType).Column("article_type").Not.Nullable();
  
          }
      }
  </code></pre>
  
  <p>then in my controller its mapped as </p>
  
  <pre><code>public ActionResult Save(TblContent model)
  </code></pre>
  
  <p>But when i call flush it throw exception.
  not-null property references a null or transient value  SocialDB.NDbModel.TblContent.ArticleType</p>
  
  <p>Question is why? as i understand dynamic update should track which property was changed and update only that values.</p>
  
  <p>PS. I know that it works if firstly get then update model
  var item = MvcApplication.CurrentSession.GetContentById(model.Id);
  item.Content = model.Content.StripHtml(false);</p>