first push

This commit is contained in:
2026-05-16 21:29:22 +02:00
commit 25edd4fac7
68 changed files with 3475 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
using Microsoft.EntityFrameworkCore;
using ModelsLib;
using ModelsLib.BDD_Models;
using System.Collections.Generic;
public class PhotoShareDbContext : DbContext
{
public PhotoShareDbContext(DbContextOptions<PhotoShareDbContext> options)
: base(options)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<ParametersDb>().ToTable("T_Params");
modelBuilder.Entity<ShootingData>().ToTable("T_ShootingData");
modelBuilder.Entity<DesireData>().ToTable("T_DesireData");
}
public DbSet<ParametersDb> ConfigDb { get; set; }
public DbSet<ShootingData> ShootingDb { get; set; }
public DbSet<DesireData> DesireDb { get; set; }
}