0
如何防止ServiceStackVS在生成的DTO上添加ApiResponse屬性?如何防止ServiceStackVS在生成的DTO上添加ApiResponse屬性?
如何防止ServiceStackVS在生成的DTO上添加ApiResponse屬性?如何防止ServiceStackVS在生成的DTO上添加ApiResponse屬性?
您可以選擇哪些屬性通過添加或從NativeTypesFeature
插件中刪除,e.g可以AppHost.Configure()
除去與招搖API屬性遠銷:
var feature = this.GetPlugin<NativeTypesFeature>();
feature.MetadataTypesConfig.ExportAttributes.RemoveWhere(
x => x is ApiAttribute ||
x is ApiMemberAttribute ||
x is ApiResponseAttribute);