安裝 Z.EntityFramework.Extensions.EFCore
Install-Package Z.EntityFramework.Extensions.EFCore -Version 2.6.11
可以打開VS開發工具用nuget安裝

使用de4dot 先格式化代碼
- 找到 Z.EntityFramework.Extensions.EFCore 的Nuget包地址(右鍵屬性可以查看),我的在 C:\Users\Administrator\.nuget\packages\z.entityframework.extensions.efcore\2.6.11\lib\netstandard2.0
- 下載de4dot:https://github.com/0xd4d/de4dot (文件脫殼)
windows下載地址:https://ci.appveyor.com/project/0xd4d/de4dot/branch/master/artifacts
下載:de4dot-net35 - 解壓后將 Z.EntityFramework.Extensions.EFCore.dll 拷貝到 de4dot-net35 解壓目錄,然后執行cmd命令
de4dot.exe Z.EntityFramework.Extensions.EFCore.dll
它會在當前dll位置在生成一個 Z.EntityFramework.Extensions.EFCore-cleaned.dll 也就是格式化之后的dll
View CodeC:\Users\Administrator\Desktop\de4dot-net35>de4dot.exe Z.EntityFramework.Extensions.EFCore.dll de4dot v3.1.41592.3405 Copyright (C) 2011-2015 de4dot@gmail.com Latest version and source code: https://github.com/0xd4d/de4dot Detected Unknown Obfuscator (C:\Users\Administrator\Desktop\de4dot-net35\Z.EntityFramework.Extensions.EFCore.dll) Cleaning C:\Users\Administrator\Desktop\de4dot-net35\Z.EntityFramework.Extensions.EFCore.dll Renaming all obfuscated symbols Saving C:\Users\Administrator\Desktop\de4dot-net35\Z.EntityFramework.Extensions.EFCore-cleaned.dll
使用dnSpy修改程序集
- 下載dnSpy:https://github.com/0xd4d/dnSpy/releases
下載:dnSpy-netcore-win64.zip - 運行 dnSpy.exe ,並打開 Z.EntityFramework.Extensions.EFCore-cleaned.dll
- 按 Ctrl+Shift+K 查找 ValidateLicense
選擇第一個 ValidateLicense 雙擊,然后點擊內部的 LicenseManager.ValidateLicense ,然后繼續點擊內部的 LicenseManager.ValidateLicense

然后點擊 Class278.smethod_10

然后點擊 Class278.smethod_11

然后點擊 Class278.smethod_7

最終找到時間判斷

-
修改方法


-
保存


- 重命名,然后項目直接添加引用即可
