我正尝试将这些数据作为JSON Post发送到一个名为Dashboard的Asp.NetWebApi控制器。但是对于这些参数,我得到了以下错误。你知道怎么纠正这个问题吗?{\"name\":\"value\"}) into type 'System.Collections.Generic.List`1[System.Int32]' because the type requiresfd00-b63f-84710c7967bb&
我正在尝试传递我的ASP.Net Core2.1控制器中的类对象列表。我得到计数为0的空对象。我使用了[FromQuery], [FromRoute]属性,但结果仍然是一样的。我的参数类如下: public class Employee public int EmployeeCode { get; set; }} 我正在尝试获取控
我有现有的ASP.NETWebAPI,我想要迁移到ASP.NET核心WebAPI,但在路由方面面临一些问题。public async Task<IEnumerable<string>> Get(int xId, int yId, int aId, int bId)
在当前场景(ASP.NETWebAPI)中,所有客户端都可
我有一个asp.netwebapi项目,下面的查询运行良好,它将数据添加到数据库中,并在_context.SaveChanges()之后返回新添加的ID
但是,当我成功地将asp.netwebapi code to asp.net CORE using EF CORE新记录迁移到数据库中时,在_context.SaveChanges()之后,它返回0作为newId而不是新Id。public partia