Temelie.Database.Models 1.0.206

This package has a SemVer 2.0.0 package version: 1.0.206+b1e6d6f.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Temelie.Database.Models --version 1.0.206
                    
NuGet\Install-Package Temelie.Database.Models -Version 1.0.206
                    
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="Temelie.Database.Models" Version="1.0.206" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Temelie.Database.Models" Version="1.0.206" />
                    
Directory.Packages.props
<PackageReference Include="Temelie.Database.Models" />
                    
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 Temelie.Database.Models --version 1.0.206
                    
#r "nuget: Temelie.Database.Models, 1.0.206"
                    
#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 Temelie.Database.Models@1.0.206
                    
#: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=Temelie.Database.Models&version=1.0.206
                    
Install as a Cake Addin
#tool nuget:?package=Temelie.Database.Models&version=1.0.206
                    
Install as a Cake Tool

Temelie.Database.Models

Plain models for database objects. Temelie.Database.Services produces them, they are stored as .sql.json files, and the source generators read them back.

dotnet add package Temelie.Database.Models

Models

Type Describes
DatabaseModel A whole database: tables, views, indexes, primary keys, triggers, foreign keys, check constraints, definitions, and security policies.
TableModel / ColumnModel Tables, views (IsView), and their columns, including type, nullability, identity, computed definition, defaults, collation, and extended properties.
IndexModel / IndexColumnModel Indexes and primary keys (IsPrimaryKey).
ForeignKeyModel, CheckConstraintModel, TriggerModel, SecurityPolicyModel Other table-level objects.
DefinitionModel Views, procedures, and functions (XType/Type); views also carry their View table model.
ConnectionStringModel A named connection: DatabaseProviderName (for example SqlConnection or MySqlConnection) plus the connection string.
TableMapping / ColumnMappingModel Source-to-target column mappings used by the table-mapping scripts.

JSON

ModelsJsonSerializerOptions.Default is the format used for .sql.json files. It uses camelCase, indented output, omits null values, and relies on a source-generated serializer context.

Load a model from generated script files, either from disk or from embedded resources:

var model = DatabaseModel.CreateFromFiles(
    Directory.GetFiles(scriptsPath, "*.sql.json", SearchOption.AllDirectories)
        .Select(file => (file, File.ReadAllText(file))));

var embedded = DatabaseModel.CreateFromAssembly(typeof(SomeTypeInTheDatabaseProject).Assembly);

The folder each file lives in (02_Tables, 03_Indexes, 05_Views, ...) determines which model type it is.

Naming from extended properties

TableModel.ClassName and ColumnModel.PropertyName default to a normalized form of the database name. A name or dynamicName extended property overrides it, and isIgnored/dynamicIsIgnored excludes a column from generated entities.

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.
  • net10.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Temelie.Database.Models:

Package Downloads
Temelie.Database.Services

Package Description

Temelie.SourceGenerator

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.207 61 11/7/2026
1.0.206 61 11/7/2026
1.0.205 59 11/7/2026
1.0.204 58 11/7/2026
1.0.202 6,011 10/13/2026
1.0.201 7,552 8/28/2026
1.0.200 225 8/26/2026
1.0.199 137 8/21/2026
1.0.196 92 8/21/2026
1.0.195 97 8/21/2026
1.0.194 2,046 8/19/2026
1.0.193 85 8/12/2026
1.0.192 23,227 7/21/2026
1.0.191 4,177 7/13/2026
1.0.190 1,042 7/9/2026
1.0.189 23,650 2/18/2026
1.0.188 79 2/13/2026
1.0.187 187 11/21/2025
1.0.186 4,764 11/20/2025
1.0.185 124 11/20/2025
Loading failed