How to handle huge efcore migrations designer files that is slowing down build and IDE

后端 未结 4 575
面向向阳花
面向向阳花 2021-02-01 23:52

I currently have an efcore 2.1 project with about 230 entities and about 350 migrations. Every time i add an efcore migration, a designer file is created. This file is approxima

4条回答
  •  礼貌的吻别
    2021-02-02 00:21

    Now, in the future, it's possible to add an .editorconfig file to the Migrations folder, with the following contents:

    # All files
    # Sets generated code for all migrations
    [*]
    generated_code = true
    

    It will disable all analyzers, which makes my IDE much happier with all the migrations.

    Note: requires Visual Studio 16.5

提交回复
热议问题