Exemplo n.º 1
0
 /// <summary>
 /// Deletes tags if entities doesn't import.
 /// </summary>
 /// <param name="sender">Event sender object.</param>
 /// <param name="args">Event arguments.</param>
 public void DeleteNotUsedTags(object sender, AfterImportEntitiesSaveEventArgs args)
 {
     if (args.ImportedRowsCount == 0)
     {
         foreach (Entity tag in ImportTags)
         {
             tag.Delete();
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Send message after save entities
 /// </summary>
 /// <param name="eventArgs"></param>
 protected void OnAfterImportEntitiesSave(AfterImportEntitiesSaveEventArgs eventArgs)
 {
     AfterImportEntitiesSave?.Invoke(this, eventArgs);
 }