Add Data and appsetings.json

This commit is contained in:
Aurelien 2021-03-25 19:31:08 +00:00
parent 5da18a893f
commit 8a8db92e83
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,11 @@
using Microsoft.EntityFrameworkCore;
using Models ;
namespace BackEndAaaapero.Data
{
public class Context
{
public Context(DbContextOptions<Context> options) : base(options) {}
public DbSet<Customer> customers { get; set; }
}
}

View File

@ -1,4 +1,9 @@
{
"Secret" : "ThisIsMoreThanASecretKey",
"ConnectionStrings": {
"DefaultConnection": "Server= eu-cdbr-west-03.cleardb.net; Database=heroku_9056830531d4329; Uid=b43a17ed9b61f6; Pwd= 009d6ed2"
},
"Logging": {
"LogLevel": {
"Default": "Information",