36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Security;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using AyCode.Database.DbContexts;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace TIAM.Database.DbContexts
|
|
{
|
|
public class TiamDbContextBase : DbContextBase
|
|
{
|
|
public TiamDbContextBase() //: this(string.Empty)
|
|
{
|
|
|
|
}
|
|
|
|
public TiamDbContextBase(string name) : base(name)
|
|
{
|
|
}
|
|
|
|
public TiamDbContextBase(DbContextOptions<DbContext> options, string name) : base(options, name)
|
|
{
|
|
}
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
{
|
|
base.OnConfiguring(optionsBuilder);
|
|
|
|
var connString = "Data Source=185.51.190.197;Initial Catalog=TIAM_DEV;Trusted_Connection=false;Encrypt=false;TrustServerCertificate=True;Connect Timeout=200;User ID=Anata_Development_Team;Password=v6f_?xNfg9N1;MultipleActiveResultSets=true";
|
|
optionsBuilder.UseSqlServer(connString);
|
|
}
|
|
}
|
|
}
|