1234567891011121314151617181920212223 |
- using Microsoft.EntityFrameworkCore;
- using System;
- using Repository.Entiies;
- namespace Repository
- {
- public class TeamDataContext : DbContext
- {
- protected override void OnConfiguring(DbContextOptionsBuilder options)
- {
- options.EnableSensitiveDataLogging();
- var connetionString = $"Data Source={AppDomain.CurrentDomain.BaseDirectory}data.db";
- options.UseSqlite(connetionString).UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking);
- base.OnConfiguring(options);
- }
- public DbSet<TestResult> ProductResult { get; set; }
- public DbSet<ParamLog> ParamLogs { get; set; }
- public DbSet<StatisticsLog> StatisticsLogs { get; set; }
- public DbSet<Information> Informations { get; set; }
- }
- }
|