CA.Blocks.DataAccess.Extensions.Translators.Json 3.3.133-prerelease

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

NuGet version (CA.Blocks.DataAccess) Build Status

This Package is a extention to the DataAccess Blocks, it will pull in the System.Text.Json to allow reading of Json Data Directory from a Column

To use: Direct Usage .NET standard a null value will be returned as Default(YourObject)

    var target = new JsonDbColToTypeConverter<YourObject>();
    var r = target.GetDataValue(dataRow, "col");

    // r will be a type of YourObject

    //or if you have we what to use the custom JsonSerializerOptions example PropertyNameCaseInsensitive
    var target = new JsonDbColToTypeConverter<YourObject>(new JsonSerializerOptions{ PropertyNameCaseInsensitive = true});
    var r = target.GetDataValue(dataRow, "col");

Direct Usage .NET 6 + can be as above by also detail with null values and interfaces

    var target = new NullJsonDbColToTypeConverter<IYourObject>(new JsonSerializerOptions{ PropertyNameCaseInsensitive = true});
    var r = target.GetDataValue(dataRow, "col");

    // r will be a type of IYourObject? and will can be null is null in the DB

Register as a Translator

   DefaultDbColToTypeProvider.DefaultInstance.Add(new NullJsonDbColToTypeConverter<IList<ColourValueDataType>>(new JsonSerializerOptions
        {
            PropertyNamingPolicy = JsonNamingPolicy.CamelCase
        }));

In .NET standard you have to use concente types, with .net core 6+ you can use Interface Types

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 was computed.  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
3.5.197-prerelease 10 7/20/2025
3.5.195 235 5/14/2025
3.5.194-prerelease 214 5/14/2025
3.5.192-prerelease 102 5/3/2025
3.5.190-alpha 172 4/13/2025
3.5.187-prerelease 127 4/13/2025
3.4.172-prerelease 84 11/29/2024
3.4.160 118 11/17/2024
3.4.159-prerelease 88 10/24/2024
3.4.157 146 8/8/2024
3.4.156-prerelease 93 8/4/2024
3.4.154-prerelease 91 8/4/2024
3.4.152-prerelease 89 8/4/2024
3.4.149-prerelease 106 7/14/2024
3.4.147 139 6/22/2024
3.4.145-prerelease 107 5/27/2024
3.3.146 139 6/22/2024
3.3.143-prerelease 111 5/25/2024
3.3.138-prerelease 116 3/16/2024
3.3.136 155 2/24/2024
3.3.135-prerelease 114 2/24/2024
3.3.133-prerelease 122 2/24/2024
3.2.129 189 1/13/2024
3.2.128-prerelease 106 1/13/2024
3.2.127-prerelease 176 11/26/2023
3.2.126-prerelease 123 11/18/2023
3.2.125-prerelease 117 11/18/2023
3.1.124 225 11/17/2023
3.1.123-prerelease 120 11/17/2023
3.1.122 183 8/29/2023
3.1.121-prerelease 132 8/29/2023
3.1.120 191 8/14/2023
3.1.119-prerelease 157 8/14/2023
3.1.118 180 7/30/2023
3.1.117-prerelease 176 7/24/2023
3.1.116-prerelease 173 7/24/2023
3.1.115 197 6/26/2023
3.1.114-prerelease 155 6/11/2023