Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional ADO.NET 3.5 with LINQ and the Entity Framework ISBN: 978-0-470-22988-0
This is the forum to discuss the Wrox book Professional ADO.NET 3.5 with LINQ and the Entity Framework by Roger Jennings; ISBN: 9780470182611
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ADO.NET 3.5 with LINQ and the Entity Framework ISBN: 978-0-470-22988-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 12th, 2009, 06:08 AM
Registered User
 
Join Date: Feb 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Comparing Performance Linq To entities and outofBand SQL updates

hi there,

On page 514 is a table which compares the ordinary sql to the Linq to entities.
now on page 515 there is the 100:1 difference partially explained.

Now in distributed designs I have to follow also the recommendations at page 513.
-Create a new Context for each web service call(being stateless)
-Add changes to the store in batches.

1)this would mean I would have a first call to the Web service which fetches all the data required in the Client.
2)the changes have to be collected until a predefined Time point at which all the changes are written back by calling a web service method with a list of CUD operations on some entities

Hmm point 1 would mean that the user would have to wait a long time before its data appears.
point 2 is prone to crashes if the client crashes before the mass of collected changes are applied.

somehow I have the feeling that EF is not appropriate for distributed designswith 3 Layers.One could use EntityBag approaches but the Data transfer objects are not persistent ignorant.

Anyone some comment? am I wrong somewhere?

thanks
David
Reply With Quote
  #2 (permalink)  
Old February 18th, 2009, 12:49 PM
Wrox Author
 
Join Date: Feb 2006
Location: Oakland, CA, USA.
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

David,

<<somehow I have the feeling that EF is not appropriate for distributed designswith 3 Layers.One could use EntityBag approaches but the Data transfer objects are not persistent ignorant.>>

You're correct that EF v1 isn't appropriate for three-tier systems if you need POCOs (for persistence ignorance). The ADO.NET team might add n-tier with POCO features to forthcoming v2, but the have been waffling on this issue lately.

--rj
Reply With Quote
  #3 (permalink)  
Old February 19th, 2009, 03:29 AM
Registered User
 
Join Date: Feb 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

Thank you very much,

This affirmed my suspicions. I hope desparately that this will come with version 2....
But v2 will not be available before october 2009?!

I had a look at several other ORM tools for .NET.
Telerik Open Access, .NET DataObjects, genome-e, Nhibernate.
Only OpenAccess seems to be usable for .NET 3.5 environments.
But none of them convinced me entirely.
so I guess I will fallback to Datasets with Linq To Dataset filling POCOs for our Businesslayer!
Reply With Quote
  #4 (permalink)  
Old February 19th, 2009, 01:58 PM
Wrox Author
 
Join Date: Feb 2006
Location: Oakland, CA, USA.
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You might want to check out Frans Bouma's LLBLGen Pro O/RM, which supports n-tier but not POCO.

Another obvious O/RM candidate is NHibernate, although the learning curve is quite steep.

--rj
Reply With Quote
  #5 (permalink)  
Old September 28th, 2009, 06:22 AM
Registered User
 
Join Date: Feb 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Conclusion

So that was it for EF ...
My conclusions and thoughts are here:
http://www.richter-web.info/Wordpress/?p=39

If someone finds that I am mistaken, please enlight me-making a comment ....
__________________
.NET is not all existing, there is more!!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LINQ to SQL example for TheBeerHouse in Wrox Blox jminatel BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 51 January 16th, 2009 11:22 PM
LINQ to SQL / IEnumerable String Criteria Yisman ASP.NET 2.0 Professional 2 December 15th, 2008 03:54 AM
LINQ to SQL in TheBeerHouse zhoux BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 October 1st, 2008 07:37 AM
LINQ to SQL example for TBH - Wrox Blox Errata dparsons BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 April 26th, 2008 09:25 AM
using Sql server 2000 with LINQ shashanksinha SQL Server 2000 2 August 20th, 2007 10:08 AM



All times are GMT -4. The time now is 02:16 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.