Updated Entity Framework Samples for RTM

Published 12 August 08 07:43 AM | dpblogs 

We have just updated a number of Entity Framework samples, including two sample providers, to work with the .NET Framework 3.5 and Visual Studio 2008 SP1 released today. Most updates were cosmetic, but there are some major changes too.

  1. EFQuerySamples - Entity Framework Query Samples
    This sample has been updated to provide for better maintainability and added support for multiple providers. This means that the same queries can be executed against different databases and providers. The version that we have released supports 6 backends, but it's trivial to add new ones (the README file that comes with the sample has instructions on doing that). Currently supported are: SqlClient (running against SQL Server 2000, 2005 and 2008), SQL Server Compact Edition 3.5 SP1, EFSampleProvider and EFOracleProvider.

    We've also added ability to run all samples at once (for example in a batch file) and save results to a file, which can be useful when developing your own provider. The command line used to run all samples against EFOracleProvider and store results in a text file called log.txt would look like:

    SampleQueries.exe /logfile log.txt /connectionString "NorthwindEF (EFOracleProvider)" /runall 
  2. EdmMetadataSamples - EDM Metadata Samples
    No major changes in the code, just some general project cleanup - C# and VB projects have now been merged and database setup has changed. If you haven't seen this sample, check it out - it allows you to browse any EDM Model in a graphical way using ASP.NET and to do simple queries. 
  3. EFSampleProvider - Entity Framework Sample
    Provider Changes in reaction to public API cleanup:
      - Removed DbProviderManifest.Token and DbProviderManifest.Provider properties
      - Removed DbFunctionExpression.IsLambda
      - Renamed DbFunctionCommandTree.Function to DbFunctionCommandTree.EdmFunction
      - Removed DbCommandTree.Validate()
      - Added support for missing canonical function CurrentDateTime(). 
  4. EFOracleProvider - Entity Framework Sample Provider for Oracle
    Changes to react to public API cleanup:
      - Removed DbProviderManifest.Token and DbProviderManifest.Provider properties
      - Removed DbFunctionExpression.IsLambda
      - Renamed DbFunctionCommandTree.Function to DbFunctionCommandTree.EdmFunction
      - Removed DbCommandTree.Validate() 
  5. EFLazyLoading - Transparent Lazy Loading for Entity Framework
    Automatically generated code is no longer part of the sample. Instead it is generated as part of every build.

Check back as we continue to update the remainder of our Entity Framework samples over the coming weeks.

 

Jaroslaw Kowalski
SDET, ADO.NET Entity Framework

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Updated Entity Framework Samples for RTM | Easycoded said on August 12, 2008 11:12 AM:

PingBack from http://www.easycoded.com/updated-entity-framework-samples-for-rtm

# Bydia said on August 12, 2008 9:08 PM:

A quick note as to where the samples can be downloaded from would be helpful.  

Thanks in Advance,

Bydia

# Nicol.Work said on August 12, 2008 10:39 PM:

where can I download the samples?

# Jeremy said on August 13, 2008 12:52 AM:

Hi guys! Great job on RTM status. I've been playing with the final bits and it's looking good so far.

As the others asked...

Where can these updated RTM samples be found?

# Chabster said on August 13, 2008 6:05 AM:

Samples here:

http://code.msdn.microsoft.com/adonetefx

# Blog del CIIN said on August 13, 2008 5:15 PM:

Una de las novedades más importantes que forman parte de la reciente release del SP1 de .NET Framework

# 自由、创新、研究、探索…… said on August 13, 2008 7:38 PM:

随着.NET Framework 3.5 SP1 和 Visual Studio 2008 SP1的发布,Entity Framework也正式发布了,相应的Sample目前已经更新到RT

# Public Sector Developer Weblog said on August 21, 2008 11:25 AM:

Thanks to everyone who attended!  You can download the deck and links to the code here: Normally,

# Vinod Kumar's Blog said on August 22, 2008 12:36 PM:

The ADO.NET team writes about some of the breaking changes as we hit the RTM. Read the blog here . And

# Alessandro Del Sole [MVP] said on September 6, 2008 12:08 PM:

Hi,

in Entity Framework Beta 3 I could locate .csdl, ssdl and .msl files from within Solution Explorer window inside the bin\debug or bin\release folder.

In VS 2008 SP1 this happens no more. Where can i find these files, please?

Thank you!

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

Search

This Blog

Syndication

Page view tracker