Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            context = new ShopTestEntities();
            //context.Vendors.Load();
            //dgrVendors.ItemsSource = context.Vendors.Local.ToBindingList();

            this.Closing += MainWindow_Closing;
        }
Пример #2
0
        public static Vendors GetAuthorByIdFind(string id)
        {
            ShopTestEntities context = new ShopTestEntities();

            return(context.Vendors.Find(id));
        }