private void detach_SpecialTrainings(SpecialTraining entity) { this.SendPropertyChanging(); entity.Team = null; }
private void GenerateSpecialTrainings(Team team) { foreach (SpecialTrainingDefinition def in mContext.SpecialTrainingDefinitions) { SpecialTraining tr = new SpecialTraining(); tr.SpecialTrainingDefinitionID = def.SpecialTrainingDefinitionID; tr.Team = team; tr.IsCompleted = false; tr.EnergyCurrent = 0; mContext.SpecialTrainings.InsertOnSubmit(tr); } }
private void attach_SpecialTrainings(SpecialTraining entity) { this.SendPropertyChanging(); entity.SpecialTrainingDefinition = this; }