internal void Update()
 {
     var context = new BasewordContext();
     var baseword = (from b in context.Basewords
                     where b.Id == Id
                     select b).SingleOrDefault();
     if (baseword != null)
     {
         baseword.Text = this.Text;
         baseword.LanguageId = this.Language.Id;
         baseword.WordtypeId = this.Wordtype.Id;
         baseword.Comment = this.Comment;
         baseword.IsLocked = this.IsLocked;
         context.SubmitChanges();
     }
 }
 private void UpdateSearchedBasewords()
 {
     var basewordContext = new BasewordContext();
     basewordContext.Load(basewordContext.GetBasewordByTextQuery(SearchText), SearchedBasewordsLoadOpCallback,null);
 }