Go to the ConfigureServices() method of the Startup class and change the AddTransient method to AddScoped for the IRepository object. 1. 2. 3. 4.
確定! 回上一頁