public bool SaveOrUpdateFeature(Feature pFeature)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<Feature> hibernateRepository = new HibernateRepository<Feature>(hibernateConnection))
         {
             var insertEntity = hibernateRepository.SaveOrUpdate(pFeature);
             if (insertEntity == null)
             {
                 return false;
             }
             else
             {
                 return true;
             }
         }
     }
 }
 public LogFeature()
 {
     Feature = new Feature();
     Device = new Device();
 }