コード例 #1
0
        public void DeleteCandidate()
        {
            using var context = new TecContext();

            context.Remove(context.Candidates.Find("CDT-000001"));
            context.Remove(context.Candidates.Find("CDT-000202"));
            //context.Remove(context.Candidates.Find("CDT-000203"));
            context.SaveChanges();
        }
コード例 #2
0
        public void DeleteApplication()
        {
            using var context = new TecContext();

            context.Remove(context.Applications.Find("APL-000002"));
            context.SaveChanges();
        }
コード例 #3
0
        public void DeleteSession()
        {
            using var context = new TecContext();

            context.Remove(context.RegisteredCandidates.Find("REG-000001"));
            context.SaveChanges();
        }
コード例 #4
0
        public void Opening_ManualDelete()
        {
            using var context = new TecContext();

            context.Remove(context.Openings.Find("OPN-000001"));
            context.SaveChanges();
        }
コード例 #5
0
        public void DeleteCourse()
        {
            using var context = new TecContext();

            context.Remove(context.Courses.Find("COR-000001"));
            //context.SaveChanges();
        }
コード例 #6
0
        public void DeleteSession()
        {
            using var context = new TecContext();

            context.Remove(context.TrainingSessions.Find("TRA-000001"));
            context.SaveChanges();
        }