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 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.
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:
Member
12 Points
301 Posts
Enterprise Library and Entity Framework
Dec 16, 2010 06:26 AM|suryaacd|LINK
Hi,
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.
Participant
1292 Points
408 Posts
Re: Enterprise Library and Entity Framework
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
see http://www.mikeborozdin.com/post/Creating-Entity-Framework-Driven-ASPNET-Application.aspx
Life would be so much easier if we could just look at the source code.
Tweet
Member
12 Points
301 Posts
Re: Enterprise Library and Entity Framework
Dec 16, 2010 11:22 PM|suryaacd|LINK
Hi,
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.
Thanks.
Contributor
5430 Points
1676 Posts
Re: Enterprise Library and 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:
http://justgeeks.blogspot.com/2009/06/using-gridview-entity-framework-linq.html
http://msdn.microsoft.com/en-us/library/bb738469.aspx
Thanks.