public AddS(int id, SBContext db)
 {
     InitializeComponent();
     this.id = id;
     this.db = db;
     UpdateListBoxes();
 }
Beispiel #2
0
        public void AddSage(Sage item)
        {
            var context = new SBContext();

            context.Sages.Add(item);
            context.SaveChanges();
        }
        public AddB(int id, SBContext db)
        {
            InitializeComponent();

            this.Id = id;
            this.db = db;
        }
Beispiel #4
0
        public IEnumerable <Sage> GettAll()
        {
            var context = new SBContext();

            return(context.Sages.Include("Book").ToList());
        }