<bdo id='X2g68'></bdo><ul id='X2g68'></ul>
  • <legend id='X2g68'><style id='X2g68'><dir id='X2g68'><q id='X2g68'></q></dir></style></legend>

    1. <tfoot id='X2g68'></tfoot>

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

        <i id='X2g68'><tr id='X2g68'><dt id='X2g68'><q id='X2g68'><span id='X2g68'><b id='X2g68'><form id='X2g68'><ins id='X2g68'></ins><ul id='X2g68'></ul><sub id='X2g68'></sub></form><legend id='X2g68'></legend><bdo id='X2g68'><pre id='X2g68'><center id='X2g68'></center></pre></bdo></b><th id='X2g68'></th></span></q></dt></tr></i><div id='X2g68'><tfoot id='X2g68'></tfoot><dl id='X2g68'><fieldset id='X2g68'></fieldset></dl></div>
      1. 是否有 Z.EntityFramework.Extensions 的非商业替代品?

        时间:2023-10-24

        • <bdo id='NQNVX'></bdo><ul id='NQNVX'></ul>

              <tbody id='NQNVX'></tbody>

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

            <i id='NQNVX'><tr id='NQNVX'><dt id='NQNVX'><q id='NQNVX'><span id='NQNVX'><b id='NQNVX'><form id='NQNVX'><ins id='NQNVX'></ins><ul id='NQNVX'></ul><sub id='NQNVX'></sub></form><legend id='NQNVX'></legend><bdo id='NQNVX'><pre id='NQNVX'><center id='NQNVX'></center></pre></bdo></b><th id='NQNVX'></th></span></q></dt></tr></i><div id='NQNVX'><tfoot id='NQNVX'></tfoot><dl id='NQNVX'><fieldset id='NQNVX'></fieldset></dl></div>
                <legend id='NQNVX'><style id='NQNVX'><dir id='NQNVX'><q id='NQNVX'></q></dir></style></legend>
                  <tfoot id='NQNVX'></tfoot>
                  本文介绍了是否有 Z.EntityFramework.Extensions 的非商业替代品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  实体框架在批量插入/更新/删除操作时可能会非常慢.即使是经常建议的关闭 AutoDetectChanges 和/或 ValidateOnSaveEnabled 的调整也并不总是有帮助.

                  Entity Framework can be very slow on mass insert/update/delete operations. Even the often suggested tweaks to turn off AutoDetectChanges and/or ValidateOnSaveEnabled does not always help.

                  我在 NuGet 上遇到过 Z.EntityFramework.Extensions,但它似乎是一个商业产品,只能在一段时间内工作.

                  I have come across the Z.EntityFramework.Extensions on NuGet, but it seems to be a commercial product, which will only work for a certain period of time.

                  https://www.nuget.org/packages/Z.EntityFramework.Extensions/

                  到目前为止,我真的只需要 BulkInsert()、BulkUpdate() 和 BulkDelete().

                  So far, I really only need BulkInsert(), BulkUpdate() and BulkDelete().

                  我的问题是:

                  是否有任何可靠的非商业库,其功能与 Z.EntityFramework.Extensions 几乎相同?

                  感谢任何提示!

                  推荐答案

                  免责声明:我是 实体框架扩展

                  你是对的.这是一个商业产品.

                  You are right. This is a commercial product.

                  每个月都提供免费试用,但您必须为生产环境购买产品.

                  批量插入

                  对于 BulkInsert,有一些免费的替代方案,但要小心,它们不支持所有继承 &关联并且不再受支持:

                  For BulkInsert, there are some free alternatives but be careful, they don't support all inheritances & associations and are no longer supported:

                  • https://www.nuget.org/packages/EntityFramework.BulkInsert-ef6
                  • https://github.com/MikaelEliasson/EntityFramework.Utilities

                  免责声明:我是Entity Framework Plus的所有者

                  用于批量更新&&批量删除,可以使用这个库:

                  For Batch Update && Batch Delete, you can use this library:

                  // DELETE all users which has been inactive for 2 years
                  ctx.Users.Where(x => x.LastLoginDate < DateTime.Now.AddYears(-2))
                           .Delete();
                  
                  // UPDATE all users which has been inactive for 2 years
                  ctx.Users.Where(x => x.LastLoginDate < DateTime.Now.AddYears(-2))
                           .Update(x => new User() { IsSoftDeleted = 1 });
                  

                  这篇关于是否有 Z.EntityFramework.Extensions 的非商业替代品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:实体框架附加/更新混淆 (EF Core) 下一篇:如何有条件地插入或替换 SQLite 中的一行?

                  相关文章

                  <tfoot id='a9af7'></tfoot>
                • <i id='a9af7'><tr id='a9af7'><dt id='a9af7'><q id='a9af7'><span id='a9af7'><b id='a9af7'><form id='a9af7'><ins id='a9af7'></ins><ul id='a9af7'></ul><sub id='a9af7'></sub></form><legend id='a9af7'></legend><bdo id='a9af7'><pre id='a9af7'><center id='a9af7'></center></pre></bdo></b><th id='a9af7'></th></span></q></dt></tr></i><div id='a9af7'><tfoot id='a9af7'></tfoot><dl id='a9af7'><fieldset id='a9af7'></fieldset></dl></div>

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

                        <bdo id='a9af7'></bdo><ul id='a9af7'></ul>
                    1. <legend id='a9af7'><style id='a9af7'><dir id='a9af7'><q id='a9af7'></q></dir></style></legend>