wklejamy.pl website for sale. You are interested in. Please contact. wklejamy@gmail.com
Click to buy coffeUntitled
Guest 959 30th May, 2022
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using WebApplication5.Data;
var builder = WebApplication.CreateBuilder(args);
var connectionString = builder.Configuration.GetConnectionString("ApplicationDbContextConnection") ?? throw new InvalidOperationException("Connection string 'ApplicationDbContextConnection' not found.");
builder.Services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(connectionString));;
builder.Services.AddDefaultIdentity<IdentityUser>(options => options.SignIn.RequireConfirmedAccount = true)
.AddEntityFrameworkStores<ApplicationDbContext>();;
// Add services to the container.
var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");
builder.Services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlServer(connectionString));
builder.Services.AddDatabaseDeveloperPageExceptionFilter();
builder.Services.AddDefaultIdentity<IdentityUser>(options => options.SignIn.RequireConfirmedAccount = true)
.AddEntityFrameworkStores<ApplicationDbContext>();
builder.Services.AddRazorPages();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseMigrationsEndPoint();
}
else
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.MapRazorPages();
app.Run();
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- Wanted to get the drift what your opinion is on this point
Xeora | 11 | 8 hours ago
- psycho
Markup | 13 | 11 hours ago
- Untitled
Markup | 25 | 17 hours ago
- Untitled
Markup | 14 | 20 hours ago
- Выгодное предложение для каждого человека
Q (kdb+ database) | 12 | 1 day ago
- Untitled
Markup | 56 | 1 day ago
- гадалка в пензе подскажите - гадалки пенза
Arduino | 22 | 2 days ago