コード例 #1
0
ファイル: PreActionHook.cs プロジェクト: fossabot/Deskly.DNT
 /// <summary>
 /// Implements the interface.  This causes the hook to only run for objects that are assignable to TEntity.
 /// </summary>
 public void Hook(object entity, HookEntityMetadata metadata, IUnitOfWork uow)
 {
     if (entity is TEntity typedEntity)
     {
         Hook(typedEntity, metadata, uow);
     }
 }
コード例 #2
0
ファイル: PreActionHook.cs プロジェクト: fossabot/Deskly.DNT
 /// <summary>
 /// The logic to perform per entity before the registered action gets performed.
 /// This gets run once per entity that has been changed.
 /// </summary>
 protected abstract void Hook(TEntity entity, HookEntityMetadata metadata, IUnitOfWork uow);