zoukankan      html  css  js  c++  java
  • Entity Framework Code-First(23):Entity Framework Power Tools

    Entity Framework Power Tools:

    Entity Framework Power Tools (currently in beta 3) has been released. EF Power Tools is useful mainly in reverse engineering and generating read-only entity data model for code-first.

    Download and install Power Tools from Visualstudiogallery

    After installing it, when you right click on the C# project, you can see the "Entity Framework" option in the context menu.

    When right-clicking on a C# project, the following context menu functions are supported:

    • Reverse Engineer Code-First - Generates POCO classes, derived DbContext and Code-First mapping for an existing database.
    • Customize Reverse Engineer Templates - Adds the default reverse engineer T4 templates to your project for editing.

    automated migration in Code-First

    When right-clicking on a file containing a derived DbContext class, the following context menu functions are supported:

    • View Entity Data Model (Read-only) - Displays a read-only view of the Code-First model in the Entity Model Designer.
    • View Entity Data Model XML - Displays the EDMX XML representing the underlying Code-First model.
    • View Entity Data Model DDL SQL - Displays the DDL SQL corresponding to the SSDL in the underlying EDM Model.
    • Generate Views - Generates pre-compiled views used by the EF runtime to improve start-up performance. Adds the generated views file to the containing project.

    automated migration in Code-First

    When right-clicking on an Entity Data Model (*.edmx) file, the following context menu function is supported:

    • Generate Views - Generates pre-compiled views used by the EF runtime to improve start-up performance. Adds the generated views file to the containing project.

    automated migration in Code-First

    Visit MSDN for a step-by-step demonstration of the tasks that you can accomplish with the EF Power Tools.

  • 相关阅读:
    POJ 3977 折半枚举
    [CQOI2007]余数求和 (分块+数学
    NOI P1896 互不侵犯 状压DP
    HDU 5446 Unknown Treasure (卢卡斯+CRT
    宁夏邀请赛F FLOYD
    P1414 又是毕业季II (数学?
    P2051 [AHOI2009]中国象棋 DP
    POJ 2449:Remmarguts' Date(A* + SPFA)
    HDU 6215:Brute Force Sorting(链表+队列)
    HDU 6207:Apple(Java高精度)
  • 原文地址:https://www.cnblogs.com/purplefox2008/p/5644393.html
Copyright © 2011-2022 走看看