private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            northwinddb2Entities entities = new northwinddb2Entities();
            var query = (from x in entities.Categories
                         select new
            {
                CategoryName = x.CategoryName,
                CategoryID = x.CategoryID
            }).ToList();

            foreach (var x in query)
            {
                lbDemo.Items.Add(x.CategoryName);
                list.Add(item: new Category()
                {
                    CategoryName = x.CategoryName,
                    CategoryID   = x.CategoryID
                });
            }
        }
 public Page2()
 {
     InitializeComponent();
     entities = new northwinddb2Entities();
 }