示例#1
0
        private void Button_to_lecturer(object sender, RoutedEventArgs e)
        {
//            Lector lector = new Lector();
            var l = new Lector().CreateNew(first.Text, second.Text, third.Text, four.Text);

            l.AddToDataBase();
        }
示例#2
0
        public override Table CreateNew(String first, String second, String third, String four)
        {
            Lector l = new Lector();

            l.lecturer             = new lecturer();
            l.lecturer.id_lecturer = Convert.ToInt32(first);
            l.lecturer.lect_name   = second;
            l.lecturer.position    = third;
            l.lecturer.kaf_lec     = Convert.ToInt32(four);
            return(l);
            //strategy.db.lecturers.Add(lecturer);
            //strategy.db.SaveChanges();
        }