¡@

Home 

c# Programming Glossary: currentuczestnik

The relationship between the two objects cannot be defined because they are attached to different ObjectContext objects

http://stackoverflow.com/questions/9083709/the-relationship-between-the-two-objects-cannot-be-defined-because-they-are-atta

varTraining.TrainingID context.Trainings.Attach Training currentUczestnik.Training Training Here's the code using var context new EntityBazaCRM.. p p.TrainingID varTraining.TrainingID foreach var currentUczestnik in listaUczestnikow context.Trainings.Attach Training currentUczestnik.Training.. in listaUczestnikow context.Trainings.Attach Training currentUczestnik.Training Training if context.TrainingUczestnicies.Any t t.TrainingUczestnicy1..