2023-04-08 19:57:10 +04:00
|
|
|
|
using BankDataBaseImplement.Models;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace BankDataBaseImplement
|
|
|
|
|
{
|
|
|
|
|
public class BankDataBase : DbContext
|
|
|
|
|
{
|
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
|
|
|
{
|
|
|
|
|
if (optionsBuilder.IsConfigured == false)
|
|
|
|
|
{
|
|
|
|
|
optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-VG5USAH\SQLEXPRESS;Initial Catalog=HotelDataBaseFull;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
|
|
|
|
}
|
|
|
|
|
base.OnConfiguring(optionsBuilder);
|
|
|
|
|
}
|
|
|
|
|
public virtual DbSet<Conference> Conferences { set; get; }
|
|
|
|
|
public virtual DbSet<Room> Rooms { set; get; }
|
2023-04-09 12:14:52 +04:00
|
|
|
|
public virtual DbSet<Additions> Additions { set; get; }
|
2023-04-08 19:57:10 +04:00
|
|
|
|
public virtual DbSet<ConferenceBooking> ConferenceBookings { set; get; }
|
|
|
|
|
public virtual DbSet<Member> Members { set; get; }
|
2023-04-09 12:14:52 +04:00
|
|
|
|
public virtual DbSet<Credit> Credits { set; get; }
|
|
|
|
|
public virtual DbSet<Clerc> Clercs { set; get; }
|
|
|
|
|
public virtual DbSet<Client> Clients { set; get; }
|
2023-04-08 19:57:10 +04:00
|
|
|
|
public virtual DbSet<ConferenceMember> ConferenceMembers { set; get; }
|
2023-04-09 12:14:52 +04:00
|
|
|
|
public virtual DbSet<RoomCredit> RoomCredits { set; get; }
|
2023-05-21 17:01:50 +04:00
|
|
|
|
public virtual DbSet<AdditionsMember> AdditionsMembers { set; get; }
|
2023-04-08 19:57:10 +04:00
|
|
|
|
public virtual DbSet<ConferenceBookingDinner> ConferenceBookingDinners { set; get; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|