Tellurian.Trains.Schedules.Model.Databases
3.2.1
Prefix Reserved
dotnet add package Tellurian.Trains.Schedules.Model.Databases --version 3.2.1
NuGet\Install-Package Tellurian.Trains.Schedules.Model.Databases -Version 3.2.1
<PackageReference Include="Tellurian.Trains.Schedules.Model.Databases" Version="3.2.1" />
<PackageVersion Include="Tellurian.Trains.Schedules.Model.Databases" Version="3.2.1" />
<PackageReference Include="Tellurian.Trains.Schedules.Model.Databases" />
paket add Tellurian.Trains.Schedules.Model.Databases --version 3.2.1
#r "nuget: Tellurian.Trains.Schedules.Model.Databases, 3.2.1"
#:package Tellurian.Trains.Schedules.Model.Databases@3.2.1
#addin nuget:?package=Tellurian.Trains.Schedules.Model.Databases&version=3.2.1
#tool nuget:?package=Tellurian.Trains.Schedules.Model.Databases&version=3.2.1
Tellurian.Trains.Schedules.Model.EntityFramework
Entity Framework Core support for the Tellurian.Trains.Schedules.Model domain model.
Installation
dotnet add package Tellurian.Trains.Schedules.Model.Database
This will also install Tellurian.Trains.Schedules.Model as a transitive dependency.
Usage
Register the ScheduleDbContext in your application:
services.AddDbContext<ScheduleDbContext>(options =>
options.UseSqlServer(connectionString));
The context includes DbSets for all domain entities:
- Layout, Company, StationTrack, TrackStretch, TimetableStretch, DispatchStretch
- OperationLocation with TPH inheritance: Station, SignalControlledLocation, OtherLocation
- Timetable, TrainCategory, Train, StationCall
- Schedule, VehicleSchedule (LocoSchedule, TrainsetSchedule), DriverDuty, TrainPart
- Note
OperationLocation Inheritance
The OperationLocation hierarchy uses Table-Per-Hierarchy (TPH) mapping with a LocationType discriminator column:
| Type | Discriminator Value |
|---|---|
Station |
"Station" |
SignalControlledLocation |
"SignalControlled" |
OtherLocation |
"Other" |
Database Provider
This package depends on Microsoft.EntityFrameworkCore.Relational but does not include a specific database provider.
Add one of the following packages based on your database:
Microsoft.EntityFrameworkCore.SqlServer- SQL ServerMicrosoft.EntityFrameworkCore.Sqlite- SQLiteNpgsql.EntityFrameworkCore.PostgreSQL- PostgreSQLPomelo.EntityFrameworkCore.MySql- MySQL/MariaDB
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.EntityFrameworkCore (>= 10.0.10)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.10)
- Tellurian.Trains.Schedules.Importers.Interfaces (>= 3.2.1)
- Tellurian.Trains.Schedules.Model (>= 3.2.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.