linq2db.t4models 5.4.1

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 3.3.0 or higher.

dotnet add package linq2db.t4models --version 5.4.1
                    
NuGet\Install-Package linq2db.t4models -Version 5.4.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="linq2db.t4models" Version="5.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="linq2db.t4models" Version="5.4.1" />
                    
Directory.Packages.props
<PackageReference Include="linq2db.t4models" />
                    
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 linq2db.t4models --version 5.4.1
                    
#r "nuget: linq2db.t4models, 5.4.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.
#addin nuget:?package=linq2db.t4models&version=5.4.1
                    
Install linq2db.t4models as a Cake Addin
#tool nuget:?package=linq2db.t4models&version=5.4.1
                    
Install linq2db.t4models as a Cake Tool

LINQ to DB

License

Also check command-line scaffolding tool: linq2db.cli.

This nuget package contains database scaffolding T4 templates to generate POCO classes from your database.

You can read about T4 templates options here. Demonstration video could be found here.

Important

Don't use this package if you don't need database scaffolding functionality. Instead of this package, use:

  1. main linq2db package
  2. database provider nuget (see list of supported providers below)

Supported database providers

Obsoletion Note

T4 templates obsoleted starting from Linq To DB 4.0.0 and replaced with new scaffolding utility. We still release newer versions of templates to maintain compatibility with new LinqToDB releases but don't actively develop new features for them.

There are multiple reasons for it:

  • T4 templates doesn't work well outside of Visual Studio. MacOS/Linux users or users of alternate IDEs could face serious issues trying to use T4 templates.
  • T4 templates executed using .NET Framework by Visual Studio, which also creates issues for non-Windows users.
  • T4 host use x86 process for Visual Studio 2019- and x64 process for Visual Studio 2022+. This creates issues with native providers as they are platform-dependent (ODBC and OleDb providers, various native ADO.NET providers).
  • It's very hard to maintain big code generation framework, written in T4 templates.

These are the most significant issues with T4 templates.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on linq2db.t4models:

Package Downloads
Hardcore.Megalog

Provides extended logging into local db

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on linq2db.t4models:

Repository Stars
linq2db/linq2db
Linq to database provider.
ClosedXML/ClosedXML.Report
ClosedXML.Report is a tool for report generation with which you can easily export any data from your .NET classes to Excel using a XLSX-template.
Version Downloads Last updated
6.0.0-preview.4 164 3/26/2025
6.0.0-preview.3 224 1/28/2025
6.0.0-preview.2 160 1/22/2025
6.0.0-preview.1 1,726 6/17/2024
5.4.1 7,870 4/7/2024
5.4.0 1,979 2/20/2024
5.3.2 37,207 10/18/2023
5.3.1 1,713 10/16/2023
5.3.0 1,703 10/12/2023
5.2.2 13,189 6/8/2023
5.2.1 1,684 5/18/2023
5.2.0 1,748 5/4/2023
5.1.1 2,611 3/25/2023
5.1.0 1,945 3/16/2023
5.0.0 1,773 2/23/2023
5.0.0-rc.2 151 2/16/2023
5.0.0-rc.1 172 2/9/2023
5.0.0-preview.2 181 2/2/2023
5.0.0-preview.1 192 1/12/2023
4.4.1 2,225 2/2/2023
4.4.0 3,377 12/15/2022
4.3.0 9,562 10/1/2022
4.2.0 2,310 9/1/2022
4.1.1 2,883 7/7/2022
4.1.0 1,988 6/16/2022
4.0.1 2,496 5/27/2022
4.0.0 2,532 5/19/2022
4.0.0-rc.2 183 5/15/2022
4.0.0-rc.1 194 4/29/2022
4.0.0-preview.9-fixed 273 11/12/2021
4.0.0-preview.10 1,468 11/15/2021
4.0.0-preview.9 214 11/11/2021
4.0.0-preview.8 272 10/22/2021
4.0.0-preview.7 263 10/14/2021
4.0.0-preview.6 293 10/2/2021
4.0.0-preview.5 273 9/10/2021
4.0.0-preview.4 398 8/13/2021
4.0.0-preview.3 295 7/9/2021
4.0.0-preview.2 242 7/1/2021
4.0.0-preview.1 242 6/9/2021
3.7.0 2,978 4/7/2022
3.6.0 5,292 11/15/2021
3.5.2.1 3,688 11/12/2021
3.5.2 2,291 11/11/2021
3.5.1 4,800 10/22/2021
3.5.0 6,427 10/14/2021
3.4.5 2,010 10/2/2021
3.4.4 3,602 9/10/2021
3.4.3 3,215 8/13/2021
3.4.2 3,623 7/9/2021
3.4.1 2,251 7/1/2021
3.4.0 6,381 6/3/2021
3.3.0 4,304 3/25/2021
3.2.3 13,742 1/4/2021
3.2.2 2,184 12/26/2020
3.2.1 2,314 12/17/2020
3.2.0 2,415 12/17/2020
3.1.6 6,013 10/31/2020
3.1.5 3,687 10/15/2020
3.1.4 2,500 10/8/2020
3.1.3 3,501 9/17/2020
3.1.2 2,827 9/3/2020
3.1.1 2,304 8/27/2020
3.1.0 2,445 8/20/2020
3.0.1 4,960 7/13/2020
3.0.0 2,523 7/10/2020
3.0.0-rc.2 493 7/5/2020
3.0.0-rc.1 366 6/17/2020
3.0.0-rc.0 412 5/30/2020
3.0.0-preview.2 450 3/28/2020
3.0.0-preview.1 945 10/17/2019
2.9.8 23,128 4/16/2020
2.9.7 27,448 3/5/2020
2.9.6 8,965 1/30/2020
2.9.5 3,716 12/30/2019
2.9.4 5,748 11/12/2019
2.9.3 2,565 10/30/2019
2.9.2 2,729 10/17/2019
2.9.1 2,892 10/3/2019
2.9.0 41,841 8/8/2019
2.8.1 2,616 7/29/2019
2.8.0 2,344 7/25/2019
2.7.4 15,462 6/14/2019
2.7.3 2,266 6/13/2019
2.7.2 3,079 6/1/2019
2.7.1 3,420 5/23/2019
2.7.0 3,029 4/25/2019
2.6.4 35,586 2/2/2019
2.6.3 2,905 1/20/2019
2.6.2 5,520 1/3/2019
2.6.1 2,754 12/21/2018
2.6.0 2,853 12/14/2018
2.5.4 7,912 11/21/2018
2.5.3 3,206 11/20/2018
2.5.2 3,539 11/12/2018
2.5.1 3,157 11/5/2018
2.5.0 3,343 11/1/2018
2.4.0 4,290 10/4/2018
2.3.0 5,589 8/30/2018
2.0.0-beta4 10,110 2/9/2018
2.0.0-beta3 10,178 2/6/2018
2.0.0-beta2 10,157 2/3/2018
2.0.0-beta1 10,257 2/2/2018
1.10.0 98,247 11/19/2017
1.9.0 27,227 8/30/2017
1.8.3 18,783 7/6/2017
1.8.2 17,950 6/6/2017
1.8.1 12,661 6/4/2017
1.8.0 13,713 5/18/2017
1.7.6 9,731 2/19/2017
1.7.5 3,787 2/7/2017
1.0.7.3 27,808 9/7/2015
1.0.7.2 5,032 8/13/2015
1.0.7.1 69,263 2/25/2015