VOOZH about

URL: https://www.nuget.org/packages/JLib.Reflection.DependencyInjection/

⇱ NuGet Gallery | JLib.Reflection.DependencyInjection 0.12.0




JLib.Reflection.DependencyInjection 0.12.0

Prefix Reserved
dotnet add package JLib.Reflection.DependencyInjection --version 0.12.0
 
 
NuGet\Install-Package JLib.Reflection.DependencyInjection -Version 0.12.0
 
 
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="JLib.Reflection.DependencyInjection" Version="0.12.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JLib.Reflection.DependencyInjection" Version="0.12.0" />
 
Directory.Packages.props
<PackageReference Include="JLib.Reflection.DependencyInjection" />
 
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 JLib.Reflection.DependencyInjection --version 0.12.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JLib.Reflection.DependencyInjection, 0.12.0"
 
 
#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 JLib.Reflection.DependencyInjection@0.12.0
 
 
#: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=JLib.Reflection.DependencyInjection&version=0.12.0
 
Install as a Cake Addin
#tool nuget:?package=JLib.Reflection.DependencyInjection&version=0.12.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Jlib.Reflection

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Features

  • compile time Typesafety: a function may opnly accept EntityTypes instead of all types
  • improved Readabillity through communication of content: you do not get a Type but an EntityType or and DtoType
  • reduced Validation: you do not have to check if the type is valid each time you want to use it
  • navigation properties: a TypeValueType might contain References to other TypevalueTypes, such as EntityType.MappedDataTransferObject
  • utility methods: you are able to create methods to simplify the usage, for example to automatically add type arguments to the type
  • start-time validation: on startup, each valuetype can be validated and the solution won't run if an type is invalid, for example missing a required interface
  • reflection-caching: All reflections are executed once and use from that point the calculated result.
  • simplified type discovery: you can use the TvtFactoryAttributes to automatically discover all your types
  • DRY-er code: you define your reflections at one central location per TypeValueType, which prevents you from having to write the same code multiple times
  • simplified reflection: you no longer have to think about what defines an entity when trying to build something like a AutoMapper.Profile using reflection, since it has already been done.

Components

  • TypeValueType
    • Combines the DDD ValueObjects / Value Types with the System.Type
    • see: Jlib.Reflection.TypeValueType
    • MUST NOT be instantiated manually but by using the TypeCache
    • MUST be decorated using FactoryAttributes
    • Types MUST only be assignable to a single TypeValueType according to the TypeValueTypes FactoryAttributes
  • FactoryAttributes
    • provides a simplified way to define which types are, for example, Entities simply by adding attributes.
    • see: JLib.Reflection.TvtFactoryAttributes
    • MUST implement JLib.Reflection.TvtFactoryAttributes.ITypeValueTypeFilterAttribute
    • MUST only be used on classes derived from TypeValueType
  • TypeCache
    • Created when the application starts. Handles the Initialization and delivery of TypeValueTypes
    • see: TypeCache, JLib.ServiceCollectionHelper.AddTypeCache
    • SHOULD: be used as singleton
  • TypePackages -
Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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 (1)

Showing the top 1 NuGet packages that depend on JLib.Reflection.DependencyInjection:

Package Downloads
JLib

Metapackage for all JLIb packages

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.12.0 150 1/15/2026
0.11.2 349 5/12/2025
0.11.1 207 2/21/2025
0.11.0 193 2/19/2025
0.10.0 205 2/17/2025
0.9.5 308 1/30/2025
0.9.4 199 1/29/2025
0.9.3 183 1/28/2025
0.9.2 190 1/22/2025
0.9.1 200 1/22/2025
0.9.0 205 1/20/2025
0.8.8 483 10/18/2024
0.8.7 259 10/18/2024
0.8.6 196 10/17/2024
0.8.5 272 9/18/2024
0.8.4 228 9/18/2024
0.8.3 243 9/11/2024
0.8.1 446 9/2/2024
0.8.0 211 8/28/2024
0.7.6 210 8/27/2024
Loading failed