how to do the same thing with Linq To Entities

Aug 14, 2009 at 5:34 PM

All --

Please help.

I need to know how to do the same thing with Linq To Entities.

This may be a little off-topic; but, I have no other place to turn.

I need "Linq To Entites Entity Base", or something like it.

I have finished my end-to-end baseline implementation for using "Linq To Sql Entity Base"...

http://linq2sqleb.codeplex.com/Thread/View.aspx?ThreadId=65715

...but now I need to migrate all my code to Linq To Entities.

How can I do that?

Does "Linq To Entites" out-of-the-box do everything that "Linq To Sql Entity Base" does? More? Less? Close? Not even close?

Please advise.

Thank you.

-- Mark Kamoski

Nov 5, 2009 at 8:54 AM

Yes EntityBag exists to make nTier with Entity Framework => http://code.msdn.microsoft.com/entitybag/

 

Nov 5, 2009 at 2:32 PM
Edited Nov 5, 2009 at 2:33 PM
cestbienmoi wrote:

Yes EntityBag exists to make nTier with Entity Framework => http://code.msdn.microsoft.com/entitybag/

 

 CestBienMoi --

That looks interesting but...

...the last release of the code is almost 2 years old...

perseus-1.1.zip, source code, 106K, uploaded Jan 28 2008 - 2106 downloads

http://code.msdn.microsoft.com/entitybag/Release/ProjectReleases.aspx?ReleaseId=64

...and the latest post in the Discussions is ominous saying...

Any one got this working?... the library works well for updating data, but I am not able to insert a new record?

http://code.msdn.microsoft.com/entitybag/Thread/View.aspx?ThreadId=2170

...which begs several important questions...

(1). Why isn't that that code base being debugged and maintained and updated regularly?

(2) Is that code base actually working now?

Can you speak to any of of these questions?

Please advise.

Thank you.

-- Mark Kamoski

Nov 5, 2009 at 6:45 PM

EntityBag is no longer being maintained.  It has been replaced by the Self-Tracking Entities template which will be part of the upcoming EF4 release (and is available in beta form now).  For more information check out this post I just made to my blog:

http://blogs.msdn.com/dsimmons/archive/2009/11/05/it-s-time-to-rip-up-entitybag-and-throw-it-away.aspx

If you are stuck using the first release of the EF (3.5sp1), then a) I highly recommend migrating to EF4 as soon as it becomes an option for you, and b) it is possible to evolve entity bag to work with the final release of 3.5sp1 (I gather some folks have done it) or even better to write something more custom and specific to your solution.  The entity bag blog posts provide lots of information about how it works and should be a good starting point.  Also the MSDN magazine articles referred to in the "throw it away" blog post mentioend above will provide some good additional background.

Best of luck!

- Danny