myesn

myEsn2E9

hi
github
cover

wangEditor: 新增 table 悬浮菜单实现全选 table

动态图效果: 下载下来,拷贝到项目中: wang-editor-table-select-all-hover-menu.js 然后在 wang-Editor 实例化后配置 table 悬浮菜单: Copy const editor = createEditor…
ABP: 配置 Identity 密码规则
https://stackoverflow.com/a/76053405/7712266 https://docs.abp.io/en/abp/latest/Modules/Identity#options https://github.com/abpframework…
SignInManager.SignInAsync 配置登录过期时间等参数
Copy private void ConfigureApplicationCookie(IServiceCollection services) { //// 配置 Identity 登录 Cookie,比如登录过期时间等 //// https://github…
ABP: 使用手机号登录
首先参考 abp modules identity 源代码,在自己的 Web 项目中创建: Pages/Account/Login.cshtml Pages/Account/Login.cshtml.cs 先将 Login.cshtml 的源代码拷贝过来,然后修改 Login…
ABP: Global JavaScript/CSS
打开 Web 项目的 WebModule 文件,添加如下代码: 这些全局的 js/css 文件位于 Web 项目的 wwwroot 目录下 Copy private void ConfigureBundles() { Configure<AbpBundlingOptions…
ABP: EF Core AsNoTracking()
阅读 Abp Unit Of Work 文档后得知以下方法类型会被视为一个 unit of work: ASP.NET Core MVC Controller Actions. ASP.NET Core Razor Page Handlers. Application…
ABP: Datatable 自定义搜索
https://stackoverflow.com/a/69372387
cover

ABP: Audit Logging

如果使用 EF Core 存储,Abp 的审计日志最终会存储到下面 4 个类型对应的表里面: AuditLog、AuditLogAction、EntityChanges、EntityPropertyChanges 属性说明参考:https://docs.abp.io/en…
Windows Server 2016 DataCenter 安装 .NET Framework 4.8.1 报错
原因:不支持,具体:https://www.reddit.com/r/techsupport/comments/xm6ybk/comment/kbxc1p1/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term…
ABP: 集成 Dapper
https://docs.abp.io/en/abp/latest/Dapper
ABP: Repository 最佳实践
https://docs.abp.io/en/abp/latest/Repositories#custom-repository-interface https://docs.abp.io/en/abp/latest/Best-Practices/Repositories
ABP: 使用 EFCore 查询时 Include 导航属性
Copy class MyService : CrudAppService {} 比如在调用 MyService.GetListAsync 时 Include 导航属性,那么就只需要重写 GetListAsync 默认实现内部调用的 CreateFilteredQueryAsyn…
cover

在 Bootstrap 的 Modal 中展示 DataTable 出现表头列宽度缩小的问题

标题中的问题如下: 可以看到,所有列都靠左甚至有些还重叠了。 解决方案: Copy const dataTable = $('#Table').DataTable(..); $(document).on('shown.bs.modal', function () {…
ABP: datatable column render as html
Copy columnDefs: [ { title: l('Template.FixedText'), data: "fixedText", // render as html render: (data)…
cover

ABP: wangEditor 上传图片接口响应 400

方法一:在接口方法上添加注解: Copy [IgnoreAntiforgeryToken] 方法二:自定义上传: 使用 abp 生成的函数上传,内部处理了 AntiforgeryToken Copy editorConfig.MENU_CONF['uploadImage'] = {…
cover
cover

ABP: 安装第三方 JavaScript 库

在 Web 项目中已经有 package.json,所以我们可以通过 yarn 或者其它的工具来安装客户端库,这是推荐的方式,当然也可以直接下载任意库,然后放在你喜欢的目录中使用,但本文主要介绍如何使用推荐的方式来集成前端库。 假如我们想使用 wangEditor 库…
cover

ABP: 使用 BLOB Storing (File System Provider)完成文件上传和下载

在 ?.Domain 项目中执行: Copy abp add-package Volo.Abp.BlobStoring.FileSystem 命令执行后,会自动: 在项目中安装 NuGet 包 Volo.Abp.BlobStoring.FileSystem 在 ?Domain…
EFCore: An operation was scaffolded that may result in the loss of data. Please review the migration for accuracy
运行 dotnet ef migrations add xx 时出现警告,参考: https://www.reddit.com/r/dotnet/comments/cvu8nb/aspnet_core_an_operation_was_scaffolded_that_may/…
Ownership of this blog data is guaranteed by blockchain and smart contracts to the creator alone.