Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Migration of asp.net web application 4.5 framework project to .net core 3.1

$
0
0

Hi Team,

I am migrating asp.net web application 4.5 framework project to .net core 3.1 so what would be architecture do i need to follow please find my observation below

1> Do i need to register all services in ConfigureServices below as I have many services

publicvoid ConfigureServices(IServiceCollection services) {services.AddDbContext<TodoContext>(opt => opt.UseInMemoryDatabase("TodoList"));services.AddControllers(); }

2>Do I need to write all function inside Configure

publicvoid Configure(IApplicationBuilder app, IWebHostEnvironment env) {if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>