Last post Jan 28, 2011 03:02 PM by sachingusain
Dec 16, 2010 06:26 AM|suryaacd|LINK
I am new to Enterprise Library and Entity Framework. As part of learning, I would like to populate a gridview with data from Users table in Pubs database. The Enterprise Library version is 5.0. I am using VS2008.Can anyone please tell the steps required
to populate the gridview with data.
Thanks in advance.
Dec 16, 2010 11:16 AM|rezaxp|LINK
You dont need the EnterpriseLibrary(DataAccessBlock) to fetch or set data to sql when you use EntityFramework
just use objectcontext to fill entity or save them
Dec 16, 2010 11:22 PM|suryaacd|LINK
Thanks for the reply. Since I am a beginner, I found it little confusing. Can you please tell me in detail the steps required to populate a gridview using Entity Framework.
Jan 28, 2011 03:02 PM|sachingusain|LINK
Entity Framework and Enterprise Library are two different things. And both of them can act as a database accessor. So you choose either one (but not both).
You can read following articles to understand how you would use EF and ASP.NET controls: