Esempio n. 1
0
 public void UpdateProjectDetail(tbl_project projectDetails)
 {
     using (ProjectManagerConnection dbContext = new ProjectManagerConnection())
     {
         dbContext.Entry(projectDetails).State = EntityState.Modified;
         dbContext.SaveChanges();
     }
 }
Esempio n. 2
0
 public void CreateNewProject(tbl_project projectDetails)
 {
     using (ProjectManagerConnection dbContext = new ProjectManagerConnection())
     {
         dbContext.tbl_project.Add(projectDetails);
         // dbContext.Entry(projectDetails).State = EntityState.Added;
         dbContext.SaveChanges();
     }
 }