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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Tellurian.Trains.Schedules.Model.Databases" Version="3.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tellurian.Trains.Schedules.Model.Databases" Version="3.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Tellurian.Trains.Schedules.Model.Databases" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tellurian.Trains.Schedules.Model.Databases --version 3.2.1
                    
#r "nuget: Tellurian.Trains.Schedules.Model.Databases, 3.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Tellurian.Trains.Schedules.Model.Databases@3.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Tellurian.Trains.Schedules.Model.Databases&version=3.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Tellurian.Trains.Schedules.Model.Databases&version=3.2.1
                    
Install as a Cake Tool

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 Server
  • Microsoft.EntityFrameworkCore.Sqlite - SQLite
  • Npgsql.EntityFrameworkCore.PostgreSQL - PostgreSQL
  • Pomelo.EntityFrameworkCore.MySql - MySQL/MariaDB
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.2.1 107 8/10/2026
3.2.0 97 8/9/2026
3.1.0 106 7/30/2026
2.1.0 144 1/12/2026
2.0.1 132 1/1/2026
2.0.0 124 1/1/2026