public void UpdatePolicy(PasswordPolicy entity) { using (var context = new QualificationsDBEntities()) { context.PasswordPolicy.Attach(entity); context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Modified); context.SaveChanges(); } }
public void InsertOpening(OpeningProgram entity) { using (var context = new QualificationsDBEntities()) { context.OpeningProgram.Attach(entity); context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added); context.SaveChanges(); } }
public void UpdateTema(StatusThemeContent entity) { using (var context = new QualificationsDBEntities()) { context.StatusThemeContent.Attach(entity); context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Modified); context.SaveChanges(); } }
public void InsertStudentModule(StudentModule entity) { using (var context = new QualificationsDBEntities()) { context.StudentModule.Attach(entity); context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added); context.SaveChanges(); } }
public void InsertUserRole(UserRole userRole) { using (var context = new QualificationsDBEntities()) { context.UserRole.Attach(userRole); context.ObjectStateManager.ChangeObjectState(userRole, System.Data.EntityState.Added); context.SaveChanges(); } }
public void InsertEvaluationFinal(EndEvaluation entity) { using (var context = new QualificationsDBEntities()) { context.EndEvaluation.Attach(entity); context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added); context.SaveChanges(); } }
public void Update(GraduateProgram entity) { using (var context = new QualificationsDBEntities()) { context.GraduateProgram.Attach(entity); context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Modified); context.SaveChanges(); } }
public void InsertPerson(Person person) { using (var context = new QualificationsDBEntities()) { context.Person.Attach(person); context.ObjectStateManager.ChangeObjectState(person, System.Data.EntityState.Added); context.SaveChanges(); } }
public void InsertTeachingMethods(TeachingMethods entity) { using (var context = new QualificationsDBEntities()) { context.TeachingMethods.Attach(entity); context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added); context.SaveChanges(); } }
public void InsertThematicContent(ContentThematic entity) { using (var context = new QualificationsDBEntities()) { context.ContentThematic.Attach(entity); context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added); context.SaveChanges(); } }
public void InsertObjectives(ObjectivesSpecifics entity) { using (var context = new QualificationsDBEntities()) { context.ObjectivesSpecifics.Attach(entity); context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added); context.SaveChanges(); } }
public void InsertGlobalPlan(GlobalPlan entity) { using (var context = new QualificationsDBEntities()) { context.GlobalPlan.Attach(entity); context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added); context.SaveChanges(); } }
public void InsertStatusThematicContent(StatusThemeContent status) { using (var context = new QualificationsDBEntities()) { context.StatusThemeContent.Attach(status); context.ObjectStateManager.ChangeObjectState(status, System.Data.EntityState.Added); context.SaveChanges(); } }