private void button1_Click(object sender, EventArgs e) { using (var context = new AdventureWorksEntities1()) { dataGridView1.DataSource = context.Contact.ToList(); } }
using (var context = new AdventureWorksEntities1()) { dataGridView1.DataSource = context.Contact.ToList(); } }
dataGridView1.DataSource = context.Contact.ToList();
Currently rated 1.0 by 1 people
Tags: ado.net entity framework, ado.net
.NET | C# | SQL
10/15/2009 6:00:24 AM #
Do you make money out of this blog? just curious
cash advance
10/25/2009 9:24:13 AM #
Just wanted to say thanks for this.
fast payday loans
10/26/2009 11:47:53 PM #
Searching for this for some time now - i guess luck is more advanced than search engines
cash loans
11/1/2009 3:52:46 AM #
Like your writing! Still you can do some things to improve it.
payday loans
3/2/2010 2:59:44 PM #
The supreme happiness in life is the conviction that we are loved.
alta white teeth whitening