private void detach_MatchFormAction(MatchFormAction entity)
		{
			this.SendPropertyChanging();
			entity.Game = null;
		}
 partial void DeleteMatchFormAction(MatchFormAction instance);
 partial void InsertMatchFormAction(MatchFormAction instance);
 partial void UpdateMatchFormAction(MatchFormAction instance);
 private void dataGridView1_UserAddedRow(object sender, DataGridViewRowEventArgs e)
 {
     try
     {
         var item = (Game)e.Row.DataBoundItem;
         if (item == null)
         {
             item = (Game)gameBindingSource.Current;
         }
         // Setup default action for this game (add to matchmedia path)
         var copyAction = wrapper.GetMoveToMatchmediaActionObject();
         var assoc = new MatchFormAction();
         assoc.ActionObject = copyAction;
         assoc.Game = item;
         assoc.PublicActivated = false;
         assoc.WarActivated = true;
         item.MatchFormAction.Add(assoc);
         // context.MatchFormActions.InsertOnSubmit(assoc);
     }
     catch (Exception ex)
     {
         logger.LogError("{0}", "Can't add defaults for new game: " + ex);
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }