public static void AddLog(string content, DateTime now)
      {
          HTransaction log  = new HTransaction();
          log.Content = content;
          log.Date = now;
          db.HTransactions.AddObject(log);
          db.SaveChanges();
 
      }
 /// <summary>
 /// Deprecated Method for adding a new object to the HTransactions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToHTransactions(HTransaction hTransaction)
 {
     base.AddObject("HTransactions", hTransaction);
 }
 /// <summary>
 /// Create a new HTransaction object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="content">Initial value of the Content property.</param>
 public static HTransaction CreateHTransaction(global::System.Int32 id, global::System.String content)
 {
     HTransaction hTransaction = new HTransaction();
     hTransaction.Id = id;
     hTransaction.Content = content;
     return hTransaction;
 }