wingqing1314

Results comments of wingqing1314

So i must change the source code?

> See https://docs.abp.io/en/abp/latest/Exception-Handling > > You can customize exception filter to return your json format : https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/AbpExceptionFilter.cs So i must change the source code?

> Please read document first. https://docs.abp.io/en/abp/latest/Entity-Framework-Core sorry,I've read it, but I could't find the ritght solution. so you suggestion is that reference to the Volo.Abp.EntityFrameworkCore package in application?

I used wrong namespace 😭 be careful System.Web.Http and Microsoft.AspNetCore.Authorization

![image](https://user-images.githubusercontent.com/14011792/82749219-31abde80-9dda-11ea-89b2-101427d62ac5.png) Maybe because of I replaced the configuration.When I comment out the code,it works. But I don't know why

> Please check the official documentation before asking questions: https://docs.abp.io/en/abp/latest/Localization I followed the documentation and it didn't work ![image](https://user-images.githubusercontent.com/14011792/83632076-325e2500-a5d1-11ea-9e64-9175816f7935.png) ![image](https://user-images.githubusercontent.com/14011792/83632108-4144d780-a5d1-11ea-86ac-0a2ace741e9d.png) ![image](https://user-images.githubusercontent.com/14011792/83632239-89fc9080-a5d1-11ea-8b2f-ffe10b38ddbc.png) ![image](https://user-images.githubusercontent.com/14011792/83632192-6f2a1c00-a5d1-11ea-966a-8e5fa2e4cc95.png)

![image](https://user-images.githubusercontent.com/14011792/83635693-39883180-a5d7-11ea-805c-2fdedaffd112.png) It works after added `ErrorMessage` . It has to be ,right?

> What is the value of `CultureInfo.CurrentUICulture` > Make sure your current UI culture is zh-hans. I just want the response message is in Chinese, not displayed on UI.

> Please see > https://docs.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=aspnetcore-3.1 learn about localization in ASP.NET Core. Got it! ``` public void ConfigureServices(IServiceCollection services) { services.AddApplication(); services.AddMvc() .AddDataAnnotationsLocalization(options => { options.DataAnnotationLocalizerProvider = (type, factory) => factory.Create(typeof(UserResource));...

> Make sure your application service method is virtual. Yes! Thank you very much 😉