Extra! Extra! – Microsoft to use 30 year old entity-data model in ADO.NET

20 June, 2006 (10:26) | General | By: Thomas

Seriously folks. I downloaded the “Next Generation Data Access” Whitepaper from Microsoft over the weekend just to see what’s potentially coming in ADO.NET 3.0. You know MS has to mess with its data access technology every couple of years –  right? It’s part of the corporate charter somewhere. “Thou shalt remodel thy data access stucture as often as possible”.  After all, the 6 million developers out there need something to do. OK enough with the sarcasm.

Upon browsing the white paper several key points immediatly jumped out:

  • The new technology contains an Object-Relational Data Mapper that uses XML mapping files
  • LINQ creates dynamic SQL – let me repeat that – LINQ creates dynamic SQL
  • According to the References quoted by the white paper, LINQ draws on Dr. Chen’s Entity Relationship Model

These are all very very noteworthy developments. First and foremost it should be noted that most of the technology espoused by LINQ has been perfected in my favorite ORM tool for several years already, and users of LLBLGen are well aware of Chen’s Entity Model. It is the very basis of LLBLGen. So if you are interested in working with a tool that has already gone through 2 versions of releases and has crossed several of the mountains that I’m certain the ADO team has yet to scale, check out LLBLGen.

Secondly, again this is very interesting – dynamic SQL as a “first class citizen” of the data access universe at MS. This is a radical departure to the mantra of stored procedures preached by various evangelists and proponents of SQL Server. A couple of years ago we even had a few rounds of blog comment discussions sparked by a post from the ASP.NET team. Somehow it seemed news to a lot of folks – even MS employees – that dynamic SQL executes as fast as procs.So having MS put out an engine that relies on dynamic SQL is big news.

LINQ uses XML mapping files – what a bummer! I think that’s pandering greatly to Hibernate, IBatis and who knows what else. It does make me suspect that perhaps many enterprise shops have started to reach for those open source efforts, and in order not to become left behind someone at MS decided that using XML mapping files is a good thing. Well I’m here to tell you it is not. Mind you this is not an original thought of mine. Wish it were. Rather it comes from my colleague and friend Dan Madoni who has sloughed through one of the larger J2EE implementations in the country – using Hibernate. And the way Dan likes to explain it, XML mapping code is essentially the same as moving logic out of your code where it can be traced and debugged into an XML file where it is hard to read, convoluted and next to impossible to debug. I never had to worry about that because I’ve had all the shiny goodness of LINQ, Hibernate and IBatis without the gray hair resulting from the XML files by using LLBLGen.

OK so I do sound like a broken record when it comes to that tool. But stop and think for a second here – how many people do you know who in the past 5 years have gone out to create a .NET product that completely flew in the face of the prevailing Microsoft theories espoused by thousands of Regional Directors, Evangelists, Product Managers and every Tom Dick and Harry wanting to get their name on all the ASP.NET sites out there. Frans Bouma has been beating the OO drum and Dr.Chen’s model for just about that length of time. He has compeletely gone against the “theory du jour” and as far as I know had to fight one of the bigger uphill battles that I’ve seen a single developer Micro-ISV fight.  That’s courage of conviction if I have ever seen it.

And the big news with LINQ is not that Microsoft Research developed LINQ and the product team is incorporating its technology. Not at all. The big news around the entire LINQ story for me is how similar to LLBLGen it is and how much that vindicates Frans and all the detractors he had to face over the years. Remember until very recently MS proclaimed the DataSet as king. It is not. Many people in the industry have said so (more recently in the NET 2.0 timeframe than during the release of 1.1). But you know what, for my money MS should save themeselves a ton of dough and just buy LLBLGen. It is so much more mature than LINQ it would make one heck of a value proposition.

UPDATE: While I contrast so much of what I read against the tool I know and love, Oren Eini actually parsed the document and made several very distinct comments that go into greater detail about the potential hazzards and pitfalls of using LINQ. I especially liked “  Oh joy! Three ORM frameworks. Linq to SQL, Linq to DataSet, Linq to Entities.” (via Mike Gunderloy

Comments

Comment from Tim Mallalieu
Time June 21, 2006 at 9:56 pm

Interesting blog, it is good to be able to read this perspective and internalize our perception of what people are asking for with what we are building.

There are different camps regarding data access approaches. Some folks have no interest in ORM, some believe it is an amazing productivity boost. Some people like external declarative models and maps, some people like implicit generative solutions.

The ADO.NET Entities work is more than just ORM. We are trying to define a conceptual model that will be the basis for aligning many of the one off conceptual models that we internaly and ISV’s externally have delivered. We believe that there is great value in a world where we can deliver such a conceptual model and provision services on top of it.

One of the aspects of delivering such a conceptual model is providing the core persistence services for it. Our approach has been to provide both generative/implicit solutions and declarative/explicit solutions to the problem domain. Our current bits show the declarative/explicit solution. We have heard the feedback from customers on the benefit of the generative solutions sans external artifacts and have plans in this space as well.

There are customers who will buy into this vision and others who shall not. I think LLBLGen happens to be a great product and if you like it and it is doing what you want then good for you, I know lots of people who also swear by IBatis and Hibernate or just home grown Data Access Objects. Our job is to align the net-net of the customer fedback with our strategic goals and what we are observing as market trends. Sometimes this shall align and resonate with you as an individual customer and sometimes it shall not, I hope it resonates more often than not. Thanks for the critical words… keep them coming and we wil keep on listening.

Comment from yukti
Time November 1, 2007 at 2:17 am

Respected Sir,
I have to give presentation on Ado v/s Ado.Net.
So,Please send me information related to this.
I Shall be very thankful to you for this.
from:yukti
email-id : gunnaan_8@yahoo.co.in

Comment from Visitor170
Time November 27, 2007 at 12:54 pm

I have visited your site 083-times

Comment from Visitor460
Time November 27, 2007 at 12:54 pm

Your site found in Google: http://google.com/search?q=dex

Comment from Visitor025
Time November 27, 2007 at 12:54 pm

I could not find this site in the Search Engines index

Comment from christmasprintables
Time December 1, 2007 at 8:12 pm

means the power,

Comment from fakechristmastrees
Time December 1, 2007 at 8:12 pm

(i.e. a single cpu) for

Comment from christmaspainting
Time December 1, 2007 at 8:12 pm

entity. form shall mean

Comment from petproducts
Time December 5, 2007 at 2:56 am

of such entity. form

Comment from happyxmas
Time December 6, 2007 at 3:15 am

this license. If

Comment from crazyfrogringtones
Time December 6, 2007 at 3:16 am

under common control

Comment from christmasstory
Time December 13, 2007 at 3:42 pm

exceptions noted below, provided

Comment from jewelryreplicas
Time December 21, 2007 at 5:16 pm

person or company may charge

Comment from russianchristmasmusic
Time December 21, 2007 at 5:17 pm

or management of such entity,

Comment from fakemustache
Time December 21, 2007 at 5:17 pm

update, the

Comment from whitechristmas
Time December 21, 2007 at 8:54 pm

FAR on one computer

Comment from catsanddogs
Time December 23, 2007 at 4:13 am

shall mean the preferred

Comment from jonespl
Time February 7, 2008 at 2:26 pm

color polos 7 jeans infiniti monmouth new sweater

Comment from Hero
Time March 16, 2008 at 8:09 am

Comment from Aron
Time March 16, 2008 at 2:39 pm

Comment from Aron
Time April 10, 2008 at 11:05 am

http://www.esnips.com/user/kimkardashianvideo||kim kardashian video
http://www.esnips.com/user/rayjkimkardashianvideo||ray j kim kardashian video

Write a comment

You need to login to post comments!