 |
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
|
|
|

July 29th, 2010, 07:42 AM
|
Friend of Wrox
|
|
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
|
|
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.
|

July 29th, 2010, 08:00 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|

July 29th, 2010, 08:07 AM
|
Friend of Wrox
|
|
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
|
|
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!
|

July 29th, 2010, 08:09 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|

July 29th, 2010, 08:13 AM
|
Friend of Wrox
|
|
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
|
|
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.
|

July 29th, 2010, 08:18 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
The Following User Says Thank You to Imar For This Useful Post:
|
|

July 29th, 2010, 08:41 AM
|
Friend of Wrox
|
|
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
|
|
Alright, i will stay with EF and probably learn more about it.
Thanks Imar.
|
|
 |