Thursday, May 29, 2008

Entity Framework v2 Wish List: John Papa

John Papa started a v2 wish list here. Chime in with yours!

Friday, May 23, 2008

CONDG Entity Framework Presentation Follow-ups

Thanks to everyone who came out last night (73...a great showing considering the start of Memorial Day weekend and the Indiana Jones IV opening) to CONDG for my Entity Framework presentation. We had some great questions I didn't know the answers to which I'll investigate and respond to soon.
  • Is there a caching mechanism for ObjectContext? Thinking of this in a web (ASP.NET), disconnected between request/response environment.
  • Is the conceptual, mapping, and schema XML loaded up all at once or is the XML representing entities loaded up individually upon instantiation / use?
  • The EF wizard interrogates the physical data store and produces the 1:1, Type per Table initial EDM. Is it possible to model the EDM first leveraging it to generate the physical schema?
  • Referring to this performance comparison between the traditional Sql Client, Entity SQL, and LINQ to Entities, what's the break-down of time consumed?
    • The ADO.NET team posted a follow-up with the break-down here. Granted, it's beta3 bits but there is some fascinating insight into the innards of EF on this post. Here is the final installment of posts on performance.
  • (I responded to this one but want to delve in further...) Are transactions built into EF and the ObjectContext? Is the ObjectContext transaction-aware?
  • Is the EF and ObjectContext interface based? Meaning, can I leverage a mock testing framework to unit test my EDM?
  • Clarification on lazy loading in EF. Thanks to Kevin Sprague for correcting me on how NHibernate handles both lazy and eager loading.
    • I can't state it any better than the EF FAQ. Lazy loading is the default but eager loading is supported on a query-by-query basis. One needs to explicitly call Load (or Include) to pull related entities into the object graph. Related postings on lazy loading here, here and here.

Wednesday, May 21, 2008

CONDG: Entity Framework Presentation

In advance of my presentation, I'm posting the slides and sample projects on SkyDrive. Hope you enjoyed the presentation and please post questions and/or comments here. Thanks for attending.

Friday, May 16, 2008

I'm Presenting the Entity Framework at CONDG Next Thursday

Come see my Entity Framework presentation on Thursday the 22nd at CONDG

When: Thursday, 5/22/2008, 6:00pm - 8:00pm
Where: Microsoft Office - Columbus (scroll down for directions)

Sponsorship
This meeting is being sponsored by Cardinal Solutions (www.cardinalsolutions.com), food and beverages will be provided.

Topic
Decomposing the ADO.NET Entity Framework

Abstract
As Microsoft continues to evolve the data access stack, the outlook continues to improve for developers. This presentation explores Microsoft's latest offering: ADO.NET Entity Framework. We'll cover what the Entity Framework promises and what it delivers v1.0 as well as how it compares with other data access frameworks. Learn how you can transpose the physical database model into a more developer-friendly, application-centric model.

Speaker
Jeff Hunsaker (www.jeffreyhunsaker.com)

Jeff is a managing consultant and team lead in the Microsoft and ALM practices for Cardinal Solutions Group in Columbus. Working for a variety of consultancies and firms for the past dozen years, he typically plays the architect or lead developer role (yes, he still codes). Jeff gets excited about efficient, resourceful, and elegant technology solutions, agile development techniques, and providing value for clients quickly and regularly. He's constantly looking for faster and more -able: (scalable, maintain, reliable, secure, etc.) ways of delivering software and loves learning new things. In his spare time, Jeff enjoys his family (two boys, wife Lisa), reading, and writing.


Directions to the Meeting
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The CONDG meets at the Microsoft office on the North side of Columbus, OH at Polaris Center.

Address: Polaris Center, 8800 Lyra Dr. 4th Floor, Columbus, OH 43240


Contact Information
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
If you have any questions about the Central Ohio .NET Developers Group or the upcoming meeting, please contact us at contact@condg.org. If you would like to be removed from the Central Ohio .NET Developers Group mailing list, reply to this message with the subject of "Remove".

Tuesday, May 13, 2008

Installing VS2008 / .NET Framework 3.5 SP1 BETA1

I've been awaiting an improved Entity Framework EDM designer tool since the CTP released in December. Well, with an Entity Framework presentation looming (May 22nd), the Redmond gods responded: VS2008 and .NET Framework SP1 BETA1.

I uninstalled all sorts of CTPs and now am the proud owner of a laptop with VS2008 and .NET 3.5 SP1 BETA1.

Below find the steps I followed. Please heed the warnings and directions within the readme (.NET 3.5 Framework SP1 BETA1, VS2008 SP1 BETA1) explicitly. Also, this is BETA software...expect minor issues and don't install on production equipment.

Scott Gu Braindump
Brian Harry Post

Uninstalled:
Microsoft ASP.NET 3.5 Extensions CTP
Microsoft ASP.NET Futures (July 2007)
ADO.NET Entity Framework Beta3
ADO.NET Entity Framework Tools CTP
Silverlight Tools Beta for Visual Studio 2008
KB949325

Did *not* uninstall:
Microsoft ASP.NET MVC Preview 2
Microsoft Silverlight

Installed:
.NET 3.5 Framework SP1 BETA1
VS2008 SP1 BETA1

Of note:
  • After the .NET 3.5 Framework SP1 BETA1 download completed, I kept being prompted to close the installation before proceeding. Huh? Finally, I simply clicked on Ignore and the installation completed successfully.
  • I had to reboot after the .NET 3.5 Framework SP1 BETA1 installation completed.
  • I needed to locate the vssetup.msi and original Visual Studio installation media to proceed with the VS2008 SP1 BETA1 installation.

Saturday, May 10, 2008

VS 2008 / .NET 3.5 SP1 BETA Released

Update (5/12/2008): And...we're back!

Visual Studio 2008 and .NET Framework 3.5 Service Pack 1 Beta
Scott Gu
Somasegar

Remarkably, they delivered M:M conceptual modeling in the Entity Framework designer. Thank you! (Stayed up 'til 3AM a while back trying to get it working...yeah, it wasn't supported then. Super.)
----------------------------------------------------------------------------------

Update (5/10/2008): Looks like the Elegant Code post was pulled. Sigh. We'll have to wait for the official announcement.

----------------------------------------------------------------------------------

It doesn't appear to be all that pronounced just yet but Service Pack 1 for both Visual Studio 2008 and .NET 3.5 is out! This should give much relief to the eight steps and MSIs now required. (Hey, it's beta/CTP, right?) Credit to Elegant Code for providing the links.

How to get VS2008 SP1
Download links from Elegant Code