当我查询 AutoQuery 服务(常规 GET 请求)时,我会在日志中收到警告,即使请求工作正常。对于 URL,警告如下所示:https://localhost:5001/employees?BirthDate%3E=1950-01-01
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/2 GET https://localhost:5001/employees?BirthDate%3E=1950-01-01 - -
warn: ServiceStack.Serialization.StringMapTypeDeserializer[0]
Property 'birthdate>' does not exist on type 'autoquery.ServiceModel.AutoQueries+QueryEmployee'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/2 GET https://localhost:5001/employees?BirthDate%3E=1950-01-01 - - - 200 - text/html 291.5297ms
我创建了一个示例,使用 Northwind 数据库,我x mix northwind.sqlite
从此处的官方示例中获得了 DTO:https ://github.com/ServiceStackApps/Northwind/blob/master/src/Northwind/Northwind.ServiceModel/Types/员工.cs。
这种“错误警告”有点麻烦,因为没有任何问题,并且它会在我的日志中填满我需要忽略的警告。特别是因为我在日志中为 WARN+ERR 设置了警报。