Partager via


Updated Entity Framework Samples for RTM

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

Comments

  • Anonymous
    August 12, 2008
    PingBack from http://www.easycoded.com/updated-entity-framework-samples-for-rtm

  • Anonymous
    August 12, 2008
    A quick note as to where the samples can be downloaded from would be helpful.   Thanks in Advance, Bydia

  • Anonymous
    August 12, 2008
    where can I download the samples?

  • Anonymous
    August 12, 2008
    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?

  • Anonymous
    August 12, 2008
    Samples here: http://code.msdn.microsoft.com/adonetefx

  • Anonymous
    August 13, 2008
    Una de las novedades más importantes que forman parte de la reciente release del SP1 de .NET Framework

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

  • Anonymous
    August 21, 2008
    Thanks to everyone who attended!  You can download the deck and links to the code here: Normally,

  • Anonymous
    August 22, 2008
    The ADO.NET team writes about some of the breaking changes as we hit the RTM. Read the blog here . And

  • Anonymous
    September 06, 2008
    Hi, in Entity Framework Beta 3 I could locate .csdl, ssdl and .msl files from within Solution Explorer window inside the bindebug or binrelease folder. In VS 2008 SP1 this happens no more. Where can i find these files, please? Thank you!