/// <summary>
 /// Deprecated Method for adding a new object to the HashTs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToHashTs(HashT hashT)
 {
     base.AddObject("HashTs", hashT);
 }
 /// <summary>
 /// Create a new HashT object.
 /// </summary>
 /// <param name="hash">Initial value of the Hash property.</param>
 public static HashT CreateHashT(global::System.String hash)
 {
     HashT hashT = new HashT();
     hashT.Hash = hash;
     return hashT;
 }
 private void updateHash()
 {
     using (var ctx = new DiscountDBContext())
     {
         string contentForHash = calcStringForHash();
         ctx.HashTs.DeleteObject(ctx.HashTs.First());
         HashT hash = new HashT { Hash = calcMD5(contentForHash) };
         ctx.HashTs.AddObject(hash);
         Version vers = new Version { VersionOfCatalog = ctx.Versions.First().VersionOfCatalog + 0.01 };
         ctx.Versions.DeleteObject(ctx.Versions.First());
         ctx.Versions.AddObject(vers);
         ctx.SaveChanges();
     }
 }