Exemple #1
0
        /// <summary>
        /// Persists a new instance of UserLocation. Returns true on success.
        /// </summary>
        /// <returns></returns>
        private bool Create()
        {
            this.rowID = Guid.NewGuid();;

            int rowsAffected = DBUserLocation.Create(
                this.rowID,
                this.userGuid,
                this.siteGuid,
                this.iPAddress,
                this.iPAddressLong,
                this.hostname,
                this.longitude,
                this.latitude,
                this.iSP,
                this.continent,
                this.country,
                this.region,
                this.city,
                this.timeZone,
                this.captureCount,
                DateTime.UtcNow,
                DateTime.UtcNow);

            return(rowsAffected > 0);
        }