コード例 #1
0
ファイル: RepositoryBase.cs プロジェクト: codeno47/efc
        /// <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));
            }
        }
コード例 #2
0
        /// <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));
            }
        }
コード例 #3
0
ファイル: IImageRepository.cs プロジェクト: emtees/old-code
	public RepositoryChangeEventArgs (RepositoryChangeType rt, string which)
	{
		ChangeType = rt;
		WhichID = which;
	}
コード例 #4
0
 /// <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;
 }
コード例 #5
0
 /// <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;
 }
コード例 #6
0
ファイル: IImageRepository.cs プロジェクト: retahc/old-code
 public RepositoryChangeEventArgs(RepositoryChangeType rt, string which)
 {
     ChangeType = rt;
     WhichID    = which;
 }