当前位置:网站首页>C # using ABP warehouse to access the database error record set
C # using ABP warehouse to access the database error record set
2022-07-28 02:11:00 【Little girl】
1. Report errors The JSON value could not be converted to Volo.Abp.Data.ExtraPropertyDictionary.

1.2 resolvent 1, Add the data contract label in the attribute field DataContract, Data member label DataMember

1.3 Solution 2 , Remove the data label above , Because the original entity class inherits from the collection root AggregateRoot, Change to inherit from Entity , And realize GetKeys Method
because Entity default Id Since the increase , So realize GetKeys When the method is used , This is how to deal with it .
public class UserRole : Entity { public virtual int Id{ get; protected set; } public UserRole() { } public override object[] GetKeys() { return new object[] { Id }; } }
2. The error context instance is released
2.1 resolvent : Paste an error in the error reporting method of the program UnitOfWork label
public class MyHandler:ITransientDependency
{
[UnitOfWork]
public async Task HandleEventAsync()
{
}
}The above basically solves my problems .
边栏推荐
- Codeworks round 810 (Div. 2) a~c problem solution
- JS what situations can't use json Parse, json.stringify deep copy and a better deep copy method
- [database data recovery] data recovery case of insufficient disk space of SQL Server database
- 对话Atlassian认证专家叶燕秀:Atlassian产品进入后Server时代,中国用户应当何去何从?
- Software testing interview question: what do you think is the key to good test case design?
- Likeshop takeout ordering system [100% open source, no encryption]
- 都在说DevOps,你真正了解它吗?
- What devices does devicexplorer OPC server support? This article has listed
- Gbase 8C recovery control function
- Hcip day 12 notes
猜你喜欢

Record a production deadlock

Flume(5个demo轻松入门)

Sample imbalance - entry 0

如何评估研发人员效能?软件工程师报告帮你看见每个人的贡献

样本不均衡-入门0

The petrochemical industry is facing the tide of rising prices, and the digital dealer distribution system platform enables dealers and stores

Embedded classic communication protocol

Fiddler mobile packet capturing agent settings (for Huawei glory 60s)

QGIS制图:矢量数据制图流程及导出

执行 Add-Migration 迁移时报 Build failed.
随机推荐
Gbase 8C general file access function
In the era of great changes in material enterprises, SRM supplier procurement system helps enterprises build a digital benchmark for property procurement
Record a production deadlock
Use of recursion: 1. Convert the tiled array to a tree 2. Convert the tree to a tiled array
HyperMesh circular array - plug in
Real time data warehouse: meituan's real-time data warehouse construction practice
MySQL的pymysql操作
微信小程序实现动态横向步骤条的两种方式
IT这个岗位,人才缺口百万,薪资水涨船高,上不封顶
WMS you don't know
Gbase 8C annotation information function
What are the important applications of MES system in manufacturing enterprises
mongodb/mongoTemplate.upsert批量插入更新数据的实现
Implementation of mongodb/mongotemplate.upsert batch inserting update data
Starfish Os X MetaBell战略合作,元宇宙商业生态更进一步
Redis设计规范
Leetcode's 83rd biweekly match
Behind every piece of information you collect, you can't live without TA
Principle and implementation of focal loss
Sample imbalance - entry 0