Esempio n. 1
0
 //Queries the FTS status on the Zentity database and sets session variable.
 private void SetFtsStatus()
 {
     using (ZentityContext context = Utility.CreateContext())
     {
         bool ftsStatus;
         if (bool.TryParse(context.GetConfiguration(_ftsPropertyName), out ftsStatus))
         {
             Session[_ftsStatus] = ftsStatus;
         }
         else
         {
             Session[_ftsStatus] = false;
         }
     }
 }