Beispiel #1
0
 // This entity type is the dependent end in at least one association that performs cascade deletes.
 // This event handler will process notifications that occur when the principal end is deleted.
 internal void HandleCascadeDelete(object sender, ObjectStateChangingEventArgs e)
 {
     if (e.NewState == ObjectState.Deleted)
     {
         this.MarkAsDeleted();
     }
 }
 private void HandleObjectStateChanging(object sender, ObjectStateChangingEventArgs e)
 {
     if (e.NewState == ObjectState.Deleted)
     {
         ClearNavigationProperties();
     }
 }
Beispiel #3
0
 private void HandleObjectStateChanging(object sender, ObjectStateChangingEventArgs e)
 {
     if (e.NewState == ObjectState.Deleted)
     {
         ClearNavigationProperties();
     }
 }
Beispiel #4
0
 /// <summary>
 /// Appelé lorsque l'état de l'entité a changé.
 /// </summary>
 /// <param name="sender">La source.</param>
 /// <param name="e">Les <see cref="KProcess.Ksmed.Models.ObjectStateChangingEventArgs"/> contenant les données de l'évènement.</param>
 private void OnEntityObjectStateChanging(object sender, ObjectStateChangingEventArgs e) =>
 OnEntityStateChanged(e.NewState);
Beispiel #5
-1
 // This entity type is the dependent end in at least one association that performs cascade deletes.
 // This event handler will process notifications that occur when the principal end is deleted.
 internal void HandleCascadeDelete(object sender, ObjectStateChangingEventArgs e)
 {
     if (e.NewState == ObjectState.Deleted)
     {
         this.MarkAsDeleted();
     }
 }