myesn

myEsn2E9

hi
github
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/…
EFCore: migration not removing 'IsRequired' from column
某个属性原来是是 "必填",后来调整为 "可为空",但是 EF Core 生成的迁移文件中没有移除那一列的 “必填配置”。 参考:https://stackoverflow.com/a/64790038/7712266
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
此部落格數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。