- Aggiornamento alla versione Microsoft.EntityFrameworkCore.Sqlite 8.0.0. - Aggiornamento alla versione Microsoft.Windows.SDK.BuildTools 10.0.26100.6584. - Migliorata l'interfaccia per l'inserimento di più URL/ID di aste. - Aggiunti pulsanti per "Aste Chiuse" e "Esporta" in MainWindow. - Creata finestra "Aste Chiuse" per visualizzare e gestire aste chiuse. - Implementato scraper per estrarre dati da aste chiuse. - Aggiunto supporto per esportazione dati in CSV, JSON e XML. - Introdotto contesto Entity Framework per statistiche delle aste. - Aggiunto servizio per calcolo e gestione delle statistiche. - Gestite preferenze di esportazione con salvataggio in file JSON.
24 lines
599 B
C#
24 lines
599 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using AutoBidder.Models;
|
|
|
|
namespace AutoBidder.Data
|
|
{
|
|
public class StatisticsContext : DbContext
|
|
{
|
|
public DbSet<ProductStat> ProductStats { get; set; }
|
|
|
|
public StatisticsContext(DbContextOptions<StatisticsContext> options) : base(options)
|
|
{
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<ProductStat>()
|
|
.HasIndex(p => p.ProductKey)
|
|
.IsUnique(false);
|
|
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
}
|
|
}
|