예제 #1
0
 public MainWindow()
 {
     InitializeComponent();
     using (CarEntities context = new CarEntities())
     {
         dataGrid.ItemsSource = context.Cars.ToList();
     }
 }
예제 #2
0
		public MainWindow()
		{
			InitializeComponent();
			using (CarEntities context = new CarEntities())
			{
				dataGrid.ItemsSource = context.Cars.ToList();
			}
		}