コード例 #1
0
        /// <summary>
        /// Persists a new instance of BannedIPAddress. Returns true on success.
        /// </summary>
        /// <returns></returns>
        private bool Create()
        {
            RowId = DBBannedIP.Add(
                BannedIP,
                BannedUtc,
                BannedReason
                );

            return(RowId > 0);
        }
コード例 #2
0
        /// <summary>
        /// Persists a new instance of BannedIPAddress. Returns true on success.
        /// </summary>
        /// <returns></returns>
        private bool Create()
        {
            int newID = 0;

            newID = DBBannedIP.Add(
                this.bannedIP,
                this.bannedUTC,
                this.bannedReason);

            this.rowID = newID;

            return(newID > 0);
        }
コード例 #3
0
        /// <summary>
        /// Persists a new instance of BannedIPAddress. Returns true on success.
        /// </summary>
        /// <returns></returns>
        private bool Create()
        {
            int newID = 0;

            newID = DBBannedIP.Add(
                this.BannedIP,
                this.BannedUtc,
                this.BannedReason);

            this.RowId = newID;

            return(newID > 0);
        }