DB/TransportGuideDatabaseImplements/TransportGuideDB.cs

25 lines
711 B
C#
Raw Normal View History

2023-04-22 21:01:25 +04:00
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel;
2023-04-22 21:01:25 +04:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TransportGuideDatabaseImplements.Models;
2023-04-22 21:01:25 +04:00
namespace TransportGuideDatabaseImplements
{
public class TransportGuideDB : DbContext
{
public TransportGuideDB() { }
public TransportGuideDB(DbContextOptions<TransportGuideDB> options): base(options)
2023-04-22 21:01:25 +04:00
{
}
public virtual DbSet<Route> Routes { set; get; }
public virtual DbSet<Stop> Stops { set; get; }
public virtual DbSet<StopRoute> StopRoutes { set; get; }
public virtual DbSet<TransportType> TransportTypes { set; get; }
}
2023-04-22 21:01:25 +04:00
}