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 12:00:24 AM #
Do you make money out of this blog? just curious
cash advance
10/25/2009 3:24:13 AM #
Just wanted to say thanks for this.
fast payday loans
10/26/2009 5:47:53 PM #
Searching for this for some time now - i guess luck is more advanced than search engines
cash loans
10/31/2009 9:52:46 PM #
Like your writing! Still you can do some things to improve it.
payday loans
3/2/2010 8:59:44 AM #
The supreme happiness in life is the conviction that we are loved.
alta white teeth whitening
3/11/2010 11:28:36 AM #
You can't put a limit on anything. The more you dream, the farther you get.
instant payday advance