Reader Level:
ARTICLE

New Feature of Entity Framework 5.0 RC

Posted by Jignesh Trivedi Articles | .NET 4.5 June 15, 2012
In this article you will learn the new features of Entity Framework 5.0 RC.
  • 0
  • 0
  • 11091

Here I list the new features of Entity Framework 5.0 RC:

  1. New Data Type Support with Entity classes

    Entity Framework 5.0 RC supports many new data types with entity classes:

    • Enum
    • Spatial Data Type (Geography and Geometry) you can expose in model using DbGeography and DbGeometry types. Spatial data is supported in Model, Database and Code First. http://msdn.microsoft.com/en-us/hh859576
       
  2. EF 5.0 has the ability to work with the Table Value Function. In this version the Table value function is street similar to a stored procedure, but the result of the Table Value Function is composable; in other words you can use it with a LINQ query. See http://msdn.microsoft.com/en-us/hh859577
     
  3. All LINQ queries are now automatically compiled and cached to improve query performance. In previous versions we could use a Compiled Query to do that.
     
  4. Multiple Diagrams for a model is supported with EF 5.0. It is also allows you to visualize subsections of your overall model. This diagram shows entities and their relationship.
     
  5. Enhancement TPT in SQL Generation.
     
  6. Performance Enhancements are included in EF 5.0
     
  7. The StoreGeneratedPattern for key columns can now be set on an entity Properties window and this value will propagate from your entity model down to the stored definition. The stored Generated Pattern attribute allows you to control how the Entity Framework synchronizes database column values and entity property values; see:
    http://msdn.microsoft.com/en-us/library/dd296755(v=vs.90).aspx
     
  8. Entity Designer Enhancement:

    • The entity designer supports selection-driven highlighting and entity-shape coloring.
    • The entity designer is now able to import SP when using Entity Model Wizard. The result is that each SP will automatically become a new complex type in Entity Model.
       
  9. Data Annotation is now moved to System.ComponentModel.DataAnnotations.dll (the supported namespace is System.ComponentModel.DataAnnotations.Schema) and it originally was removed from the EntityFramework.dll.
     
  10. Visual Studio 11 Beta includes LocalDB instead of SQLEXPRESS. The Entity Framework Containing NuGet Package will check which database is available; if SQLEXPRESS is running then it would be used otherwise if Local DB is registered as the default instead during installation.
     
  11. EF 5.0 is able to map a stored procedure that returns multiple result sets to the types in the conceptual Model.
     
  12. EF 5.0 is able to generate object layer code using DBContext Generator.

COMMENT USING

Trending up