// Add other specific methods here public void UpdateTestGénéréDetached(TestGénéré g) { TestGénéré existing = this.DataContext.TestGénérés.OfType <TestGénéré>().FirstOrDefault(x => x.TestId == g.TestId); ((IObjectContextAdapter)DataContext).ObjectContext.Detach(existing); this.DataContext.Entry(g).State = EntityState.Modified; }
void ITestService.UpdateTestGénéréDetached(TestGénéré c) { utOfWork.TestRepository.UpdateTestGénéréDetached(c); }
void ITestService.CreateTestGénéré(TestGénéré testGénéré) { utOfWork.TestRepository.Add(testGénéré); }