DTOMaker.Core 0.55.20-dev

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

DTOMaker

Types and source generators for building DTOs (Data Transport Objects) and related POCOs (Plain Old C# Objects).

todo build badge

Warning: This is pre-release software under active development. Breaking changes may occur.

DTOMaker.Models

Attributes for defining simple data models as interfaces in C#.

DTOMaker.Models.MemBlocks

Additional attributes used by the DTOMaker.MemBlocks source generator, to manage entity and member memory layout.

DTOMaker.Models.MessagePack

Additional attributes used by the DTOMaker.MessagePack source generator, to manage MessagePack entity and member keys.

DTOMaker.Core

Core types used by source generators at compile-time, including a common syntax receiver, and a powerful template processor.

Features

Features implemented:

  • DTOMaker.MessagePack source generator
  • DTOMaker.MemBlocks source generator
  • DTOMaker.CSPoco source generator
  • Member value types: Boolean, S/Byte, U/Int16/32/64/128, Double, Single, Half, Char, Guid, Decimal
  • String member types:
    • Required or nullable strings for CSPoco and MessagePack
    • Non-nullable UTF8-encoded fixed length strings for MemBlocks
  • IFreezable support
  • Templates as code, template processing
  • [Obsolete] members
  • Fixed length arrays of above value types.
  • polymorphic types

Features not implemented:

  • Nullable types. T? can be implemented with a pair of fields (Boolean, T).
  • Enum data types. Enums can be implemented with an underlying integer property and a cast.

In progress:

  • multi-namespace models
  • entity members

Coming soon:

  • reservation (hidden members)
  • Json (NewtonSoft) generator
  • Json (System.Text) generator
  • Orleans generator
  • ProtobufNet 3.0 generator
  • NetStrux generator
  • compact layout method

Coming later:

  • C# records generator
  • Google Protobuf .proto generation
  • model.json generation
  • command-line alternative
  • generic patterns: lists, trees, unions, etc.
  • variable length arrays
  • logical value equality

These models are consumed by the following source generators to emit DTO classes that implement the model interfaces.

DTOMaker.Runtime

Common types used at runtime by DTOMaker entities.

Benchmarks

Some benchmarking comparing the serialization and deserialization performance of various generated DTOs can be found at: todo

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
0.55.34-dev 245 1/22/2025
0.55.32-dev 109 1/22/2025
0.55.31-dev 112 1/21/2025
0.55.30-dev 118 1/21/2025
0.55.29-dev 115 1/20/2025
0.55.27-dev 113 1/20/2025
0.55.25-dev 148 1/20/2025
0.55.24-dev 224 1/20/2025
0.55.23-dev 128 1/19/2025
0.55.20-dev 111 1/19/2025
0.55.17-dev 103 1/19/2025
0.55.14-dev 224 1/19/2025
0.55.3-dev 111 1/9/2025
0.55.2-dev 96 1/9/2025
0.54.2 154 1/3/2025
0.54.1-dev 141 1/3/2025
0.53.3 161 1/1/2025
0.53.2 149 12/31/2024
0.53.1-dev 119 12/31/2024
0.51.2 137 12/31/2024
0.51.1 126 12/31/2024
0.50.3 138 12/31/2024
0.50.2-dev 120 12/31/2024
0.50.1-dev 114 12/31/2024
0.49.7 132 12/31/2024
0.49.6 135 12/29/2024
0.49.5-dev 117 12/29/2024
0.49.4-dev 117 12/29/2024
0.48.5 131 12/29/2024
0.48.4-dev 121 12/28/2024
0.48.3-dev 114 12/28/2024
0.48.2-dev 108 12/28/2024
0.48.1-dev 120 12/28/2024
0.47.1 137 12/27/2024
0.46.9 125 12/27/2024
0.46.8 128 12/27/2024
0.46.7 142 12/27/2024
0.46.6 135 12/23/2024
0.46.5 131 12/23/2024
0.46.4 127 12/22/2024
0.46.3 122 12/22/2024
0.46.2-dev 107 12/22/2024
0.46.1-dev 113 12/22/2024
0.45.4 123 12/21/2024
0.45.3-dev 114 12/20/2024
0.45.2-dev 119 12/20/2024
0.44.4 114 12/19/2024
0.44.3 129 12/19/2024
0.44.2 136 12/19/2024
0.44.1 125 12/19/2024
0.43.5 113 12/19/2024
0.43.4 128 12/19/2024
0.43.3 123 12/19/2024
0.43.2-dev 115 12/19/2024
0.43.1-dev 124 12/18/2024
0.42.2 146 12/18/2024
0.42.1-dev 122 12/18/2024
0.41.6 122 12/18/2024
0.41.5-dev 108 12/18/2024
0.40.16 127 12/17/2024
0.40.14 120 12/16/2024
0.40.12-dev 105 12/16/2024
0.40.3-dev 116 12/3/2024
0.40.1-dev 110 12/3/2024
0.39.2 128 12/3/2024
0.39.1-dev 118 12/2/2024
0.38.4 128 11/30/2024
0.38.3-dev 106 11/30/2024
0.38.2-dev 115 11/30/2024
0.38.1-dev 105 11/25/2024
0.37.3 136 11/24/2024
0.37.2 137 11/23/2024
0.37.1 125 11/23/2024
0.36.6 260 11/23/2024
0.36.5 284 11/22/2024
0.36.4 266 11/22/2024
0.36.2 131 11/20/2024
0.34.1 133 11/17/2024
0.33.1 132 11/17/2024
0.32.2 136 11/16/2024
0.31.1 140 11/16/2024
0.30.5 132 11/16/2024
0.30.2 146 11/15/2024
0.30.1 145 11/13/2024
0.29.14 132 11/13/2024
0.29.12 127 11/13/2024
0.29.11 183 11/13/2024
0.29.9 183 11/13/2024
0.29.8 194 11/13/2024
0.29.7 190 11/12/2024
0.29.6 185 11/12/2024
0.29.5 192 11/12/2024
0.29.4-dev 153 11/12/2024
0.29.3-dev 150 11/12/2024
0.29.1-dev 115 11/11/2024
0.28.1 171 11/11/2024
0.27.4 156 11/11/2024
0.27.3 148 11/10/2024
0.27.2 139 11/9/2024
0.26.11 146 11/9/2024
0.26.10-dev 112 11/6/2024
0.26.9-dev 110 11/5/2024
0.26.7-dev 116 11/4/2024
0.26.3-dev 95 10/22/2024
0.26.2-dev 131 10/20/2024
0.25.5 160 10/20/2024
0.25.4-dev 139 10/20/2024
0.25.3-dev 134 10/20/2024
0.25.2-dev 151 10/19/2024
0.25.1-dev 161 10/19/2024
0.24.8 174 10/19/2024
0.24.7 176 10/19/2024
0.24.6 164 10/19/2024
0.24.5-beta 146 10/19/2024
0.24.4-beta 162 10/18/2024
0.24.3-beta 161 10/18/2024
0.24.2-beta 177 10/18/2024
0.24.1-beta 157 10/18/2024
0.23.5 186 10/18/2024
0.23.4 170 10/18/2024
0.23.3 200 10/18/2024
0.23.2-beta-gcd1d98d29f 165 10/18/2024
0.23.2-beta 158 10/18/2024
0.22.8 180 10/18/2024
0.22.7 178 10/18/2024
0.22.6-beta 102 10/17/2024
0.22.1-beta 123 10/16/2024
0.21.3 146 10/10/2024
0.21.2-beta 114 10/10/2024
0.20.4 154 10/8/2024
0.20.3-beta 112 10/7/2024
0.20.1-beta 114 10/7/2024
0.19.4 142 10/7/2024
0.19.3 172 10/6/2024
0.19.1 162 10/6/2024
0.18.1 171 10/6/2024
0.17.1 146 10/5/2024
0.16.2 134 10/5/2024
0.16.1 142 10/5/2024
0.15.1 144 10/5/2024
0.14.2 149 10/5/2024
0.13.1 140 10/4/2024
0.12.2 149 10/4/2024
0.11.13 158 10/4/2024
0.11.7 142 10/3/2024
0.11.5-beta 112 10/3/2024
0.11.2-beta 115 10/2/2024
0.11.1-beta 124 10/2/2024
0.10.3 154 10/2/2024
0.10.2-beta 121 10/2/2024
0.10.1-beta 116 10/2/2024
0.9.5 162 10/2/2024
0.9.4-beta 133 10/2/2024
0.9.3-beta 116 10/2/2024
0.9.2-beta 106 10/2/2024
0.9.1 162 10/1/2024
0.8.3 145 10/1/2024
0.8.2-beta 115 10/1/2024
0.8.1-beta 115 10/1/2024
0.7.6 143 9/30/2024
0.7.5 144 9/28/2024
0.7.3-alpha 115 9/28/2024
0.7.2-alpha 117 9/28/2024
0.7.1-alpha 113 9/28/2024
0.6.2-beta 134 9/26/2024
0.5.2-beta 124 9/25/2024
0.5.1-beta 103 9/25/2024
0.4.1-beta 96 9/25/2024
0.3.2-beta 149 9/22/2024
0.3.1-beta 127 9/22/2024
0.2.2-beta 132 9/21/2024
0.2.1-beta 124 9/21/2024
0.1.15-alpha 122 9/21/2024
0.1.13-alpha 140 9/21/2024
0.1.12-alpha 122 9/21/2024
0.1.11-alpha 114 9/21/2024
0.1.9-alpha 118 9/21/2024