private void btnSP_Click(object sender, EventArgs e) { using (NorthwindEntities db = new NorthwindEntities()) { //呼叫Store Procedure var result = (from r in db.CustOrdersOrders("BERGS") select r).ToList(); DataGridView1.DataSource = result; } }
private void btnSP_Click(object sender, EventArgs e) { using (NorthwindEntities db = new NorthwindEntities()) { //呼叫Store Procedure var result = (from r in db.CustOrdersOrders("BERGS") select r).ToList(); DataGridView1.DataSource = result; } }