/// <summary> /// Raises <see cref="RepositoryChanged"/> event. /// </summary> /// <param name="changeType">Change type.</param> /// <param name="entity">The entity instance.</param> protected virtual void OnRepositoryChanged(RepositoryChangeType changeType, TEntity entity) { EventHandler <RepositoryChangeEventArgs> handler = this.RepositoryChanged; if (handler != null) { handler(this, new RepositoryChangeEventArgs(changeType, entity)); } }
/// <summary> /// Raises <see cref="RepositoryChanged"/> event. /// </summary> /// <param name="changeType">Change type.</param> /// <param name="entity">The entity instance.</param> protected virtual void OnRepositoryChanged <TEntity>(RepositoryChangeType changeType, TEntity entity) where TEntity : class { EventHandler <RepositoryChangeEventArgs> handler = RepositoryChanged; if (handler != null) { handler(this, new RepositoryChangeEventArgs(changeType, entity)); } }
public RepositoryChangeEventArgs (RepositoryChangeType rt, string which) { ChangeType = rt; WhichID = which; }
/// <summary> /// Initializes a new instance of the <see cref="RepositoryChangeEventArgs"/> class. /// </summary> /// <param name="changeType">The change type.</param> /// <param name="entity">The domain entity instance.</param> public RepositoryChangeEventArgs(RepositoryChangeType changeType, object entity) { ChangeType = changeType; Entity = entity; }
public RepositoryChangeEventArgs(RepositoryChangeType rt, string which) { ChangeType = rt; WhichID = which; }