【发布时间】:2021-02-25 09:47:37
【问题描述】:
如果我为输入函数设置数据类型dynamic,那么一切正常,我可以获取值。
报告类
public class ColumnHistory
{
int ECH_COUNTER { get; set; }
int TOTAL_WEIGHT { get; set; }
int TOTAL_COUNT { get; set; }
string COLUMNS_PLACE { get; set; }
}
public class InventoryInPlace
{
int ELC_SIZE { get; set; }
int STO_COUNT { get; set; }
int STO_WGT { get; set; }
int STO_COUNTER { get; set; }
string ELC_ID { get; set; }
}
public class Report
{
public ColumnHistory[] columnHistory { get; set; }
public InventoryInPlace[] inventoryInPlace { get; set; }
}
【问题讨论】:
-
请分享
Report类的代码 -
@PeterCsala 报告类代码添加
-
能否请您将参数类型更改为
string以查看接收到的有效载荷。或者您可以通过string rawRequest = await Request.Content.ReadAsStringAsync();捕获它吗?请将其作为代码包含在问题中。
标签: c# asp.net-core asp.net-core-3.1