implemented basic crud logic; NB: CONNECTION STRING IN PROGRAM.CS IS EMPTY

This commit is contained in:
2022-11-19 11:10:00 +03:00
parent 400f717f97
commit 32b5d16c44
14 changed files with 313 additions and 58 deletions

View File

@@ -1,3 +1,8 @@
using Backend.Api.Data;
using Microsoft.AspNetCore.Authentication.Google;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
@@ -5,8 +10,11 @@ var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddDbContext<DataContext>(options => options.UseNpgsql(""));
var app = builder.Build();
// Configure the HTTP request pipeline.