2023-04-09 14:42:51 +04:00
|
|
|
|
using AbstractPackageInstallationDatabaseImplement.Models;
|
|
|
|
|
using AbstractSoftwareInstallationDatabaseImplement.Models;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AbstractSoftwareInstallationDatabaseImplement
|
|
|
|
|
{
|
|
|
|
|
public class AbstractSoftwareInstallationDatabase : DbContext
|
|
|
|
|
{
|
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder
|
|
|
|
|
optionsBuilder)
|
|
|
|
|
{
|
|
|
|
|
if (optionsBuilder.IsConfigured == false)
|
|
|
|
|
{
|
2023-09-07 23:55:57 +04:00
|
|
|
|
optionsBuilder.UseSqlServer(@"Data Source=DANYAXREN\SQLEXPRESS;Initial Catalog=SoftwareInstallation1;Integrated Security=True;MultipleActiveResultSets=True;TrustServerCertificate=True");
|
2023-04-09 14:42:51 +04:00
|
|
|
|
}
|
|
|
|
|
base.OnConfiguring(optionsBuilder);
|
|
|
|
|
}
|
|
|
|
|
public virtual DbSet<Software> Softwares { set; get; }
|
|
|
|
|
public virtual DbSet<Package> Packages { set; get; }
|
|
|
|
|
public virtual DbSet<PackageSoftware> PackageSoftwares { set; get; }
|
|
|
|
|
public virtual DbSet<Order> Orders { set; get; }
|
2023-04-22 23:53:31 +04:00
|
|
|
|
public virtual DbSet<Client> Clients { set; get; }
|
2023-04-24 02:09:10 +04:00
|
|
|
|
public virtual DbSet<Implementer> Implementers { set; get; }
|
2023-06-03 00:16:54 +04:00
|
|
|
|
public virtual DbSet<MessageInfo> Messages { set; get; }
|
2023-04-09 14:42:51 +04:00
|
|
|
|
}
|
|
|
|
|
}
|