예제 #1
0
        public void Delete(JobCatalog add)
        {
            JobsEntities db = new JobsEntities();

            db.JobCatalogs.Attach(add);
            db.Entry(add).State = System.Data.Entity.EntityState.Deleted;
            db.SaveChanges();
        }
예제 #2
0
        public void Edit(InfoUser add)
        {
            JobsEntities db = new JobsEntities();

            db.InfoUsers.Attach(add);
            db.Entry(add).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }
예제 #3
0
        public void Edit(CompanyInfo add)
        {
            JobsEntities db = new JobsEntities();

            db.CompanyInfoes.Attach(add);
            db.Entry(add).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }
예제 #4
0
        public void Delete(Position add)
        {
            JobsEntities db = new JobsEntities();

            db.Positions.Attach(add);
            db.Entry(add).State = System.Data.Entity.EntityState.Deleted;
            db.SaveChanges();
        }