久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='pNhmX'></tfoot>
    • <bdo id='pNhmX'></bdo><ul id='pNhmX'></ul>

        <small id='pNhmX'></small><noframes id='pNhmX'>

        <i id='pNhmX'><tr id='pNhmX'><dt id='pNhmX'><q id='pNhmX'><span id='pNhmX'><b id='pNhmX'><form id='pNhmX'><ins id='pNhmX'></ins><ul id='pNhmX'></ul><sub id='pNhmX'></sub></form><legend id='pNhmX'></legend><bdo id='pNhmX'><pre id='pNhmX'><center id='pNhmX'></center></pre></bdo></b><th id='pNhmX'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pNhmX'><tfoot id='pNhmX'></tfoot><dl id='pNhmX'><fieldset id='pNhmX'></fieldset></dl></div>
      1. <legend id='pNhmX'><style id='pNhmX'><dir id='pNhmX'><q id='pNhmX'></q></dir></style></legend>

        在不同的 TFS 分支上工作時丟失 EF 代碼優先遷移

        Lose EF Code First Migration when working on different TFS branches?(在不同的 TFS 分支上工作時丟失 EF 代碼優先遷移?)
        <tfoot id='66Osi'></tfoot>

            <tbody id='66Osi'></tbody>
            • <i id='66Osi'><tr id='66Osi'><dt id='66Osi'><q id='66Osi'><span id='66Osi'><b id='66Osi'><form id='66Osi'><ins id='66Osi'></ins><ul id='66Osi'></ul><sub id='66Osi'></sub></form><legend id='66Osi'></legend><bdo id='66Osi'><pre id='66Osi'><center id='66Osi'></center></pre></bdo></b><th id='66Osi'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='66Osi'><tfoot id='66Osi'></tfoot><dl id='66Osi'><fieldset id='66Osi'></fieldset></dl></div>
              • <bdo id='66Osi'></bdo><ul id='66Osi'></ul>
                1. <small id='66Osi'></small><noframes id='66Osi'>

                  <legend id='66Osi'><style id='66Osi'><dir id='66Osi'><q id='66Osi'></q></dir></style></legend>
                2. 本文介紹了在不同的 TFS 分支上工作時丟失 EF 代碼優先遷移?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我們正在使用 TFS,并且我們的 Dev 有不同的分支.

                  We are using TFS and have different branches for our Dev.

                  1. 在分支 A 中,我們進行了遷移以更改列大小

                  1. in the branch A we made a migration to change a column size

                  在分支 B 中,我們進行了遷移以添加新表.這個分支不知道分支A的修改??!

                  in the branch B we made a migration to add a new table. This branch doesn not know about the branch A modification !!

                  兩個修改都合并到主分支.

                  both modification are merged to the main branch.

                  當我更新數據庫時,它會進行 2 次遷移,但最后告訴我有待處理的更改.如果我執行添加遷移,它會創建與第一次遷移相同的遷移(在分支 A 中).

                  When I do an update database, it does the 2 migration but at the end tells me there is pending changes. If I do an Add-Migration, it creates the same as the 1st migration (in branch A).

                  無法更新數據庫以匹配當前模型,因為有待處理更改和自動遷移被禁用.要么寫掛起的模型更改基于代碼的遷移或啟用自動遷移.放DbMigrationsConfiguration.AutomaticMigrationsEnabled 為 true 以啟用自動移民.您可以使用 Add-Migration 命令將掛起的模型更改寫入基于代碼的遷移.

                  Unable to update database to match the current model because there are pending changes and automatic migration is disabled. Either write the pending model changes to a code-based migration or enable automatic migration. Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration. You can use the Add-Migration command to write the pending model changes to a code-based migration.

                  是否因為我上次遷移的屬性 Target de IMigrationMetadata 的內容中缺少某些內容,因為它不知道第一次遷移?

                  Is it because something is missing in the content of the property Target de IMigrationMetadata of my last migration since it didn't know about the 1st one ?

                  是否可以在不同的 TFS 分支中處理遷移?

                  Is it possible to handle migrations in different TFS branches?

                  推薦答案

                  EF 遷移步驟包含一個元數據文件,該文件具有模型簽名,該簽名是遷移步驟的結果.合并時的問題是在分支 B 中完成的遷移的簽名不包括在分支 A 中的遷移中完成的內容.只要遷移在分支中,這是正確的.合并時會出錯.

                  An EF migration step contains a metadata file, that has a signature of the model that is the result of the migration step. The problem when merging is that the signature of the migration done in branch B doesn't include the stuff done in the migration in branch A. As long as the migrations are in the branches, this is correct. When merging it becomes wrong.

                  要解決這個問題,您必須使用

                  To remedy it, you have to regenerate the meta-data of the latter migration with

                  add-migration MyMigrationName
                  

                  在沒有 -force 參數的現有遷移上運行 add-migration 將僅重新生成元數據.

                  Running add-migration on an existing migration without the -force parameter will regenerate just the metadata.

                  我在 中寫了一篇關于合并場景的深入演練EF 遷移和合并沖突 在我的博客上發布.

                  I wrote an in depth walk-through of a merging scenario in the EF Migrations and a Merge Conflict post on my blog.

                  這篇關于在不同的 TFS 分支上工作時丟失 EF 代碼優先遷移?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數調用按鈕 OnClick)
                  ASP.net C# Gridview ButtonField onclick event(ASP.net C# Gridview ButtonField onclick 事件)
                  Adding OnClick event to ASP.NET control(將 OnClick 事件添加到 ASP.NET 控件)
                  Multiple submit Button click problem?(多個提交按鈕點擊問題?)
                3. <tfoot id='2cXiD'></tfoot>
                      <i id='2cXiD'><tr id='2cXiD'><dt id='2cXiD'><q id='2cXiD'><span id='2cXiD'><b id='2cXiD'><form id='2cXiD'><ins id='2cXiD'></ins><ul id='2cXiD'></ul><sub id='2cXiD'></sub></form><legend id='2cXiD'></legend><bdo id='2cXiD'><pre id='2cXiD'><center id='2cXiD'></center></pre></bdo></b><th id='2cXiD'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='2cXiD'><tfoot id='2cXiD'></tfoot><dl id='2cXiD'><fieldset id='2cXiD'></fieldset></dl></div>
                        <bdo id='2cXiD'></bdo><ul id='2cXiD'></ul>
                          <legend id='2cXiD'><style id='2cXiD'><dir id='2cXiD'><q id='2cXiD'></q></dir></style></legend>
                            <tbody id='2cXiD'></tbody>

                            <small id='2cXiD'></small><noframes id='2cXiD'>

                          1. 主站蜘蛛池模板: 久久久91精品国产一区二区三区 | 欧美理论| 国产中的精品av涩差av | 最近中文字幕第一页 | 99re视频在线观看 | www.久久精品视频 | 久久久久久亚洲国产精品 | 51ⅴ精品国产91久久久久久 | 欧洲妇女成人淫片aaa视频 | 网黄在线| 免费国产视频 | 黄色欧美视频 | 亚洲精品一级 | 美女黄色在线观看 | 一区二区三区在线播放 | 毛片免费视频 | 色婷婷国产精品 | 国产精品免费大片 | 国产午夜精品一区二区三区在线观看 | 国产三级电影网站 | 精品一区二区不卡 | 永久精品 | 麻豆精品久久久 | 日本一区二区三区四区 | 国产美女视频黄 | 亚洲在线免费观看 | 91精品国产色综合久久 | 精品综合在线 | 成人av免费网站 | 久久久久国产精品一区 | 亚洲视频在线看 | 天堂在线中文 | 一级片子 | 欧美精品一区二区三区四区 在线 | 成年人黄色一级片 | 免费国产一区二区 | 国产成人网 | 九九热在线免费视频 | 日韩欧美国产一区二区 | 91pao对白在线播放 | 亚洲 欧美 日韩 在线 |