40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using IRaCIS.Core.Test.CodeFirstTest.MSSQL;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace IRaCIS.Core.Test.CodeFirstTest.MSSQL;
|
|
|
|
public partial class IRCContext : DbContext
|
|
{
|
|
public IRCContext()
|
|
{
|
|
}
|
|
|
|
public IRCContext(DbContextOptions<IRCContext> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
public virtual DbSet<TrialImageDownload> TrialImageDownload { get; set; }
|
|
|
|
public virtual DbSet<TestNew> TestNew { get; set; }
|
|
|
|
public virtual DbSet<Subject> Subject { get; set; }
|
|
|
|
public virtual DbSet<SubejectVisit> SubejectVisit { get; set; }
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
=> optionsBuilder.UseSqlServer("Server=106.14.89.110,1433;Database=IRC_Code;User ID=sa;Password=mssql_KnTs2a;TrustServerCertificate=true");
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
|
|
|
|
|
|
OnModelCreatingPartial(modelBuilder);
|
|
}
|
|
|
|
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
|
|
}
|