MSDN Flash
UK MSDN Flash
02 April 2008
Editor's Intro

Hello

Last week's Poll results (available near the bottom of this issue as always) pleasantly surprised me. My perception is that developers predominantly target the web space, but the results show Client development coming slightly on top! It is my personal opinion that client development is not only more interesting but also where the future of software development lies. I like to think that the current buzz around Silverlight will also help web developers start thinking of utilising the client platform more (even if in that case it is via a browser). For a couple of interesting Silverlight links, see our Fresh section below, as well as the previous issue.

Talking of client development, I'd like to thank those of you who attended the UK 2008 Launch last week and specifically my Smart Client session, which was one of the 8 sessions on the developer track. If you missed any of those sessions (or indeed the entire event) you can still get the resources and a virtual version of it by following all the links from my blog post on UK 2008 Launch Resources. If on the other hand you feel that you know all there is to know about the RTM version of Visual Studio 2008 and are interested in what is coming next on the Microsoft platform for developers then I look forward to meeting you at one of our UK MSDN Roadshow venues. One of the technologies discussed there is the ADO.NET Entity Framework and that is the topic of this issue's Article below.

Cheers
Daniel

MSDNMSDN EventsMSDN ScreencastsEvaluation CentreDeveloper CentresMSDN

Fresh Discoveries
Articles
Book
Downloads
Recorded Video
Expert to Expert: Erik Meijer and Bertrand Meyer.
Objects, Contracts, Concurrency, Sleeping Barbers and Eiffel.
Downloads
Recorded Video
John Lam and Martin Maly: Deep Dynamic Language Runtime (DLR).
This interview focuses deeply on one core question: How does the DLR work.
Articles
Case Study
Sussex Downs College uses Visual Studio 2008 and Windows Presentation Foundation.
Timetable Project Makes Scheduling Easier for College of Further Education.
Downloads
Download
Windows Vista Service Pack 1.
In case you aren’t an MSDN subscriber and also you don’t run Microsoft Update.
Articles
Download
Windows Vista Product Guide Revision Document for Service Pack 1.
Complimentary document that outlines the improvements made to Windows Vista by SP1.
Articles
Download
Extensible Application Markup Language (Xaml) technical documentation.
It provides specifications for XAML, which enables you to specify a hierarchy of objects.
Articles
MSDN Magazine
ASP.NET MVC: Building Web Apps without Web Forms.
Discusses the MVC pattern, creating controllers, views, forms and other extensibility points.
Articles
MSDN Magazine
Tame Your Software Dependencies for More Flexible Apps.
Discusses testing and dependency woes and dependency inversion & injection.
Articles
KB Article
System.Threading.Timer fires immediately when specifying a large value for due time.
Describes the workaround for a framework bug (don’t set the interval beyond 49.7 days).
Articles
Blog
Headless (aka blind) Silverlight Applications – Using Sockets for Push Data to HTML.
Bringing the power of .NET to the browser without necessarily using the GUI aspect.
Articles
Blog
Silverlight for Mobile video demonstrations.
Nine videos that showcase the capabilities of Silverlight on mobile devices.

Register Now to Avoid Disappointment
Community event
Community event
Community event
Community event
Community event
Community event 

Feature Article

Introducing the ADO.NET Entity Framework

The ADO.NET team has a new technology brewing that aims to raise the level of abstraction at which applications perform data access: Entity Framework. Expected around the middle of the year, it provides a mechanism via which you can define a conceptual model on top of a database schema and then program against that model. The model is often referred to as the Entity Data Model (EDM).

The Entity Framework is a provider-based mechanism meaning that it has the potential to work with non-Microsoft databases just like ADO.NET has done since its inception. The central idea of the Entity Framework is that the schema of your relational database may not be something that you want to surface directly to application programmers. One common case would be one where the schema is a little “less than optimal” and you’d like to tidy it up a bit for application access. Another case might be where the schema is highly normalised and hence not ideal for an application developer who is used to object oriented programming models.

In order to surface the EDM to an application developer, the Entity Framework needs three different groups of metadata:

1. The EDM itself. This is modelled using an XML grammar known as Conceptual Schema Definition Language (CSDL).
2. The definition of the underlying database schema. This is modelled using an XML grammar known as Store Schema Definition Language (SSDL).
3. A mechanism via which the framework is to translate (1) into (2) and vice versa. This is modelled using Mapping Schema Language (MSL).

In terms of programming the Entity Framework, we pass the metadata (CSDL+MSL+SSDL) to the object model and it surfaces the defined EDM in one of two ways:

1. Using the traditional ADO.NET data access API. There is a new EntityClient provider that has EntityConnections, EntityCommands and EntityDataReaders. The EntityClient executes queries written in a database neutral query language known as Entity SQL.
2. Using an Object Relational Mapping API that ships as part of the Entity Framework. This supports building queries using LINQ, so it is usually referred to as “LINQ to Entities”.

As a simple example, we might have a DB2 store with a table called Customers which we map into conceptual entity sets: “Customers” and “PriorityCustomers”. A developer can then write a LINQ query against those entity sets without needing to write any SQL or being exposed to the underlying store schema!

There’s a lot of promise in V1.0 of the Entity Framework. If you want to find out more, I’d encourage you to download the Beta 3 build.

If you’d rather someone else did that work then I can take you through it :-) – just come along to the UK MSDN Roadshow.

Mike Taulty

Read Mike's blog

Flash Poll Question
Results From Last Poll: 
Most developers work on a combination of various domains, but what do you focus on predominantly:

33% Client, 32% Web, 14% Database, 12% Server and 9% Mobile or embedded.

Flash Results

Question of the fortnight

Which .NET Framework version are you targeting in your most recent project?

1. .NET Framework v1.x
2. .NET Framework v2.0
3. .NET Framework v3.0
4. .NET Framework v3.5
5. Not targeting .NET


On the Horizon
Community event
Community event
Community event



Contact Microsoft

Send your feedback and comments to ukmsdn@microsoft.com.
Find out more about the MSDN resources that are available to you.

Find out more about the Microsoft Contact Centre or call on 0870 60 10 100 (0800-1800 Monday to Friday)
Find out more about your MSDN support options or call 0800 0517 215

MSDNMSDN EventsMSDN ScreencastsEvaluation centreDeveloper CentresMSDN

To cancel your subscription to this newsletter, reply to this message with the word UNSUBSCRIBE in the Subject line. You can also unsubscribe at the Microsoft Profile Centre You can manage all your Microsoft.com communication preferences at this site.

Legal Information 

This newsletter was sent by Microsoft Ltd, Microsoft Campus, Thames Valley Park, Reading RG6 1WG.
Sign up for other newsletters | Contact Us | Unsubscribe | Update your profile | Legal information
© 2007 Microsoft Corporation  Terms of Use | Trademarks | Privacy Statement
Microsoft