Chưa phân loại

New Feature of Entity Framework 5.0 RC

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.
  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
  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:
  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.



2 thoughts on “New Feature of Entity Framework 5.0 RC”

  1. continuously i used to read smaller posts that as well clear their motive, and that is also
    happening with this piece of writing which I am reading at this time.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s