BackEnd
What is C#?
What is .Net?
What is .Net Core?
What is .Net Standard?
What is EntityFrameWork?
What is ASP.Net?
What is ADO.Net?
What is WebAPI?
What is MVC?
What is WebForms?
What is Middleware?
What is DependencyInjection(DI)?
What is OAUTH?
What is JWT Authentication?
What is Authentication & Authorization?
What is Controller?
What is Class?
What is Interface?
API
What is Starup.cs?Before 8 versions
What is Program.cs?After 8 No Starup.cs it is included in Program.cs
What is appsettings.json?
What is launchSettings.json?
MVC:
What is Web.config?
What is Contains Web.config?
What is Global.asax?
What is View?
What is packages.config?
Services.AddDbContext
Services.AddControllers()
Services.AddCors
Services.AddEndpointsApiExplorer();
Services.AddCors(options =>
{
options.AddPolicy("AllowAll", builder =>
builder.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader());
});
app.UseSwagger();
app.UseSwaggerUI();
app.ConfigureExceptionHandler();
app.UseCors("AllowAll");
app.UseHttpsRedirection();
app.UseAuthorization();
app.MapControllers(); OR app.UseEndpoints
app.Run();
Comments
Post a Comment