Exemple #1
0
 public void UpdatePolicy(PasswordPolicy entity)
 {
     using (var context = new QualificationsDBEntities())
     {
         context.PasswordPolicy.Attach(entity);
         context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Modified);
         context.SaveChanges();
     }
 }
Exemple #2
0
 public void InsertOpening(OpeningProgram entity)
 {
     using (var context = new QualificationsDBEntities())
     {
         context.OpeningProgram.Attach(entity);
         context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added);
         context.SaveChanges();
     }
 }
Exemple #3
0
 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();
     }
 }
Exemple #6
0
 public void InsertEvaluationFinal(EndEvaluation entity)
 {
     using (var context = new QualificationsDBEntities())
     {
         context.EndEvaluation.Attach(entity);
         context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added);
         context.SaveChanges();
     }
 }
Exemple #7
0
 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();
     }
 }
Exemple #9
0
 public void InsertTeachingMethods(TeachingMethods entity)
 {
     using (var context = new QualificationsDBEntities())
     {
         context.TeachingMethods.Attach(entity);
         context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added);
         context.SaveChanges();
     }
 }
Exemple #10
0
 public void InsertThematicContent(ContentThematic entity)
 {
     using (var context = new QualificationsDBEntities())
     {
         context.ContentThematic.Attach(entity);
         context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added);
         context.SaveChanges();
     }
 }
Exemple #11
0
 public void InsertObjectives(ObjectivesSpecifics entity)
 {
     using (var context = new QualificationsDBEntities())
     {
         context.ObjectivesSpecifics.Attach(entity);
         context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added);
         context.SaveChanges();
     }
 }
Exemple #12
0
 public void InsertGlobalPlan(GlobalPlan entity)
 {
     using (var context = new QualificationsDBEntities())
     {
         context.GlobalPlan.Attach(entity);
         context.ObjectStateManager.ChangeObjectState(entity, System.Data.EntityState.Added);
         context.SaveChanges();
     }
 }
Exemple #13
0
 public void InsertStatusThematicContent(StatusThemeContent status)
 {
     using (var context = new QualificationsDBEntities())
     {
         context.StatusThemeContent.Attach(status);
         context.ObjectStateManager.ChangeObjectState(status, System.Data.EntityState.Added);
         context.SaveChanges();
     }
 }