using Backend.Data.Interfaces; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Backend.Data.Config { public class ApplicationDatabaseContext : DbContext,IApplicationDatabaseContext { public ApplicationDatabaseContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); } public DbSet Produits { get; set; } public DbSet Proprietes { get; set; } public DbSet TypeProprietes { get; set; } public DbSet Commandes { get; set; } public DbSet LigneCommandes { get; set; } public override async Task SaveChangesAsync(CancellationToken cancellationToken = default) { return await base.SaveChangesAsync(cancellationToken); } } }