Пример #1
0
        public static void DeleteSemester(int id)
        {
            SampleObjectContext context = new SampleObjectContext();

            DeleteSemester(context, id);

            context.AcceptAllChanges();
            Semester.OnCacheNeedsRefresh();
        }
Пример #2
0
        public static Semester CreateSemester(DateTime Begin_Parameter, DateTime End_Parameter, string Name_Parameter)
        {
            SampleObjectContext context = new SampleObjectContext();
            Semester            obj     = CreateSemester(context, Begin_Parameter, End_Parameter, Name_Parameter);

            context.AcceptAllChanges();
            Semester.OnCacheNeedsRefresh();

            return(obj);
        }