/// <summary> /// Determines whether this instance is active. /// </summary> /// <returns> /// <c>true</c> if this instance is active; otherwise, <c>false</c>. /// </returns> public static bool IsActive() { using (IDataReader reader = DbFullTextSearch.GetActive()) { if (reader.Read()) { if (((int)reader[0]) == 1) { return(true); } } } return(false); }
/// <summary> /// Gets the information. /// </summary> /// <returns></returns> public static FullTextSearchInfo GetInformation() { if (!IsActive()) { return(null); } FullTextSearchInfo retVal = new FullTextSearchInfo(); using (IDataReader reader = DbFullTextSearch.GetInfo()) { if (reader.Read()) { retVal.PopulateStatus = (FullTextSearchPopulateStatus)(int)reader[0]; retVal.IndexSize = (int)reader[1]; } } return(retVal); }
/// <summary> /// Deactivates this instance. /// </summary> public static void Deactivate() { DbFullTextSearch.Deactivate(); }
/// <summary> /// Activates this instance. /// </summary> public static void Activate() { DbFullTextSearch.Activate(); }