コード例 #1
0
        public Shelf addShelf(int location, int capacity, int wardrobe_id)
        {
            Shelf shelf = new Shelf();

            shelf.location    = location - 1;
            shelf.capacity    = capacity;
            shelf.id_wardrobe = wardrobe_id;
            DBconnection.DBCONNECTION.Shelf.InsertOnSubmit(shelf);
            DBconnection.DBCONNECTION.SubmitChanges();
            return(shelf);
        }
コード例 #2
0
 public void setShelf(MapDB.Shelf shelf)
 {
     newItem.id_shelf = shelf.id_shelf;
 }