namespace AAIntegration.SimmonsBank.API.Helpers;

using Microsoft.EntityFrameworkCore;
using AAIntegration.SimmonsBank.API.Entities;
using System.Diagnostics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Diagnostics.CodeAnalysis;

public class DataContext : DbContext
{
    //protected readonly IConfiguration Configuration;
    readonly ILogger<DataContext> _logger;

    public DataContext(
        DbContextOptions<DataContext> options,
        ILogger<DataContext> logger)
         : base(options)
    {
        _logger = logger;
        //Configuration = configuration;
    }

    /*protected override void OnConfiguring(DbContextOptionsBuilder options)
    {
        // in memory database used for simplicity, change to a real db for production applications
        options.UseInMemoryDatabase("TestDb");
    }*/

    public DbSet<User> Users { get; set; }
}