/// <summary>
        /// Raises the <see cref="ColumnChanged" /> event.
        /// </summary>
        /// <param name="column">The <see cref="CountriesColumn"/> which has raised the event.</param>
        /// <param name="value">The changed value.</param>
        public virtual void OnColumnChanged(CountriesColumn column, object value)
        {
            if (!SuppressEntityEvents)
            {
                CountriesEventHandler handler = ColumnChanged;
                if (handler != null)
                {
                    handler(this, new CountriesEventArgs(column, value));
                }

                // warn the parent list that i have changed
                OnEntityChanged();
            }
        }
        /// <summary>
        /// Determines whether the property value has changed from the original data.
        /// </summary>
        /// <param name="column">The column.</param>
        /// <returns>
        ///     <c>true</c> if the property value has changed; otherwise, <c>false</c>.
        /// </returns>
        public bool IsPropertyChanged(CountriesColumn column)
        {
            switch (column)
            {
            case CountriesColumn.CountryCode:
                return(entityData.CountryCode != _originalData.CountryCode);

            case CountriesColumn.Name:
                return(entityData.Name != _originalData.Name);

            default:
                return(false);
            }
        }
        /// <summary>
        /// Raises the <see cref="ColumnChanging" /> event.
        /// </summary>
        /// <param name="column">The <see cref="CountriesColumn"/> which has raised the event.</param>
        /// <param name="value">The changed value.</param>
        public virtual void OnColumnChanging(CountriesColumn column, object value)
        {
            if (IsEntityTracked && EntityState != EntityState.Added && !EntityManager.TrackChangedEntities)
            {
                EntityManager.StopTracking(entityTrackingKey);
            }

            if (!SuppressEntityEvents)
            {
                CountriesEventHandler handler = ColumnChanging;
                if (handler != null)
                {
                    handler(this, new CountriesEventArgs(column, value));
                }
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:CountriesComparer"/> class.
 /// </summary>
 /// <param name="column">The column to sort on.</param>
 public CountriesComparer(CountriesColumn column)
 {
     this.whichComparison = column;
 }
 ///<summary>
 /// Initalizes a new Instance of the CountriesEventArgs class.
 ///</summary>
 public CountriesEventArgs(CountriesColumn column, object value)
 {
     this.column = column;
     this.value  = value;
 }
 ///<summary>
 /// Initalizes a new Instance of the CountriesEventArgs class.
 ///</summary>
 public CountriesEventArgs(CountriesColumn column)
 {
     this.column = column;
 }
 /// <summary>
 /// Raises the <see cref="ColumnChanged" /> event.
 /// </summary>
 /// <param name="column">The <see cref="CountriesColumn"/> which has raised the event.</param>
 public virtual void OnColumnChanged(CountriesColumn column)
 {
     OnColumnChanged(column, null);
     return;
 }