myesn

myEsn2E9

hi
github

ABP

ABP: 配置 Identity 密码规则
https://stackoverflow.com/a/76053405/7712266 https://docs.abp.io/en/abp/latest/Modules/Identity#options https://github.com/abpframework…
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…
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

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

在 ?.Domain 项目中执行: Copy abp add-package Volo.Abp.BlobStoring.FileSystem 命令执行后,会自动: 在项目中安装 NuGet 包 Volo.Abp.BlobStoring.FileSystem 在 ?Domain…
ABP: 连接 MySQL 8.0 报错 Authentication method 'caching_sha2_password' failed
简单记录下。这个错误跟 ABP 无关,但为了分类笔记,我将他与 ABP 关联一下吧。 ABP 用的 MySQL ORM 是 Pomelo.EntityFrameworkCore.MySql。 解决办法,在连接字符串中添加: Copy SslMode=Preferred;
ABP: How to share the cookies between subdomains
https://community.abp.io/posts/how-to-share-the-cookies-between-subdomains-jfrzggc2
ABP: Using MiniProfiler with the ABP Framework
https://community.abp.io/posts/using-miniprofiler-with-the-abp-framework-6el5dziz
ABP: Converting Create/Edit Modal to Page
https://community.abp.io/posts/converting-createedit-modal-to-page-4ps5v60m
ABP 使用 HTTP 协议启动 Web 项目
打开 *.Web\Properties\launchSettings.json ,参考以下配置 : Copy { "iisSettings": { "windowsAuthentication": false…
Ownership of this blog data is guaranteed by blockchain and smart contracts to the creator alone.