﻿namespace Dike.Core.Events.Bus.Entities
{
    using System;

    /// <summary>
    /// This type of event is used to notify just before deletion of an Entity.
    /// </summary>
    /// <typeparam name="TEntity">The type of the entity.</typeparam>
    /// <seealso cref="Dike.Core.Events.Bus.Entities.EntityChangingEventData{TEntity}" />
    [Serializable]
    public class EntityDeletingEventData<TEntity>
        : EntityChangingEventData<TEntity>
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="EntityDeletingEventData{TEntity}"/> class.
        /// </summary>
        /// <param name="entity">The entity.</param>
        public EntityDeletingEventData(TEntity entity)
            : base(entity)
        {
        }

        #endregion Constructors
    }
}