public AddS(int id, SBContext db) { InitializeComponent(); this.id = id; this.db = db; UpdateListBoxes(); }
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; }
public IEnumerable <Sage> GettAll() { var context = new SBContext(); return(context.Sages.Include("Book").ToList()); }