Wrox Programmer Forums
| 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 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 February 12th, 2009, 07: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
 
Old February 18th, 2009, 01: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
 
Old February 19th, 2009, 04: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!
 
Old February 19th, 2009, 02: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
 
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 ....




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 17th, 2009 12:22 AM
LINQ to SQL / IEnumerable String Criteria Yisman ASP.NET 2.0 Professional 2 December 15th, 2008 04: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





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