title: ServiceStack OrmLite update
body: <p>Below Code works fine.</p>
  
  <pre><code>public static void UpdateCategory(Category category) {
    var dbFactory = new OrmLiteConnectionFactory(connString, SqlServerDialect.Provider);
    using (IDbConnection db = dbFactory.OpenDbConnection()) {
      try{
        db.Update&lt;Category&gt;(category);
      }
      catch (Exception e) {
        throw new Exception(string.Format("Error within {0}", e.Message));
      }
    }
  }
  </code></pre>
  
  <p>Below code does not? </p>
  
  <pre><code>public static int UpdateRowInTable&lt;T&gt;(object value) {
    var dbFactory = new OrmLiteConnectionFactory(connString, SqlServerDialect.Provider);
    using (IDbConnection db = dbFactory.OpenDbConnection()) {
      try {
        result = db.Update&lt;T&gt;(value);
      }
      catch (Exception e) {
        throw new Exception(string.Format("Error within {0}", e.Message));
      }
    }
  }
  </code></pre>
  
  <p>thanks</p>