Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
| Search | Today's Posts | Mark Forums Read
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 29th, 2010, 07:42 AM
Friend of Wrox
 
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
Default Questions related to ADO.NET EF and one unrelated

Hi Imar,

I have 2 little questions, i wanted your opinion on the first question and the second is related to GridView display.

1- In which scenarios it is better to use ADO.NET Entities Framework or SQL to LINK ? It is okay to use ADO.NET EF for a simple website too ?


2- It is normal that the asp gridview render as a floating element ? (Such when i add a <p>test</p> on the line after the gridview end tag it still write test at the right of the grid. Is there an explanation to this ?


Thanks a lots.
 
Old July 29th, 2010, 08:00 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

1) Yes, you could. Whatever you feel more comortable with. EF can be just more complex.

2) It doesn't do that by default, so there must be something in your page and CSS that causes this to happen.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old July 29th, 2010, 08:07 AM
Friend of Wrox
 
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
Default

What you mean by "EF can be just more complex." ? Actually the only tasks i need to do is using EF with LINQ in order to perform CRUD operation in my table.. such as your book showed.

Thanks for your fast answer!
 
Old July 29th, 2010, 08:09 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's a broader, more powerful and thus more complex technology. For example, it supports many to many relationships, and has a slightly different API than Linq to SQL has.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old July 29th, 2010, 08:13 AM
Friend of Wrox
 
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
Default

Do you have some links reference regarding that API ? or do you know if profesionnal asp.net in vb or c# cover it a lots ?

Thanks.
 
Old July 29th, 2010, 08:18 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Google.com? ;-)
http://www.google.com/#hl=en&q=entit...+documentation

AFAIK, yes, the Pro 4 book discusses EF, but I don't know to what extent. You may also want to look at the Entity Framework book by Julie Lerman. There's a second version coming out soon.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Rushino (July 29th, 2010)
 
Old July 29th, 2010, 08:41 AM
Friend of Wrox
 
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
Default

Alright, i will stay with EF and probably learn more about it.

Thanks Imar.




Similar Threads
Thread Thread Starter Forum Replies Last Post
book related questions here jminatel BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 January 30th, 2013 07:52 PM
2 related questions on Graphs Mr.Pickles Excel VBA 1 July 22nd, 2007 10:35 AM
Book related questions here jminatel BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 September 27th, 2006 11:02 AM
how to deal with this problem related with ADO.NET zouky ADO.NET 2 October 8th, 2004 04:30 AM
ADO.NET Dataset Questions winnie1778 ADO.NET 1 October 20th, 2003 12:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.