/// <summary> /// Determines whether this Poll is expired. /// </summary> /// <returns> /// <c>true</c> if this instance is expired; otherwise, <c>false</c>. /// </returns> public bool IsExpired() { return(DB.GetSqlN("select count(*) as N from Poll with (NOLOCK) where PollID=" + this._pollID.ToString() + " and ExpiresOn<" + DB.DateQuote(Localization.ToDBShortDateString(System.DateTime.Now))) > 0); }