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

            context.Sages.Add(item);
            context.SaveChanges();
        }
示例#3
0
        public AddB(int id, SBContext db)
        {
            InitializeComponent();

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

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