Zen v14 ADO.NET Data Provider for .NET Standard 2.0 Release Notes
General Release – February 2020
Contents
This file contains the following topics:
About Zen ADO.NET Data Provider for .NET Standard 2.0
Beginning with Zen v14, the Zen ADO.NET Data Provider for .NET Standard 2.0 is available for use by applications running on systems that have a .NET implementation compatible with version 2.0 of the .NET Standard specification of .NET APIs. For more information about compatibility, see Requirements.
Note that this new provider and the Zen ADO.NET Data Provider for .NET Framework target different systems:
If you are creating an application that needs to run on target systems with .NET Framework 4.6.0 or earlier, use the Zen ADO.NET Data Provider for .NET Framework installed with the Zen database engine. For more information regarding the Zen ADO.NET Data Provider for .NET Framework, see the SDK for that provider.
For information regarding limitations of the new data provider, see Known Issues and Usage Notes.
Requirements
To develop applications using the Zen ADO.NET Data Provider for .NET Standard 2.0, the following requirements must be met:
For a full list of platform versions supporting version 2.0 of the .NET Standard specification, see the .NET Implementation Support list provided by Microsoft.
To create UWP applications, in the application settings you must select a minimum target version of Windows 10 Fall Creators Update (10.0; Build 16299) or later. This setting is available only for UWP projects in Visual Studio if version 10.0.16299 or later of the Windows Software Development Kit is installed on your development system. If your UWP application will target a minimum version of Windows 10 later than 10.0.16299, then the NuGet package for Microsoft.NETCore.UniversalWindowsPlatform that is automatically added to the project by Visual Studio must be version 6.1.9 or later.
Getting Started
The assembly file name for the Zen ADO.NET Data Provider for .NET Standard 2.0 is PSQL.Data.SqlClientStd.dll. Unlike the Zen ADO.NET Data Provider for .NET Framework, this newer assembly is not installed to the .NET Framework Global Assembly Cache (GAC), nor is it installed with the Zen database engine. The new assembly is available only through the NuGet package bundled with this SDK package and must be added to your Visual Studio project.
The NuGet package containing the new provider is supported only by versions of Visual Studio starting with Visual Studio 2017. To add the NuGet package to your Visual Studio project, you must configure the NuGet Package Manager to reference local NuGet packages. This can be done by adding the path to the directory containing local NuGet packages to the Package Sources setting under Tools > Options > NuGet Package Manager.
The steps documented are based on Visual Studio Enterprise 2017. The steps you follow may differ if you are using another version or edition of Visual Studio.
Referencing the Provider
A reference to the Zen ADO.NET Data Provider for .NET Standard 2.0 is added to your Visual Studio project automatically when the NuGet package is added to the project.
This example creates an application that references the provider.
1
These steps use the Console App (.NET Core) project template except where noted.
Note Selecting a Universal Windows project template prompts you to choose the target and minimum platform versions that your UWP application will support. You must select minimum version Windows 10 Fall Creators Update (10.0; Build 16299) or later. If this version is not listed, check whether the appropriate version of the Windows Software Development Kit is installed in your development environment.
2
Note If you are using a Universal Windows Blank App project type and your application will need to connect to a Zen database on a remote system, open the package.appxmanifest file and in the Capabilities tab, select Private Networks (Client & Server).
3
4
The new provider shares the same namespace, Pervasive.Data.SqlClient, as the Zen ADO.NET Data Provider for .NET Framework but supports only .NET APIs that are part of the .NET Standard 2.0 specification. For instructions on using the provider namespace in your code, see Zen Data Provider for .NET Guide. For more information regarding the .NET APIs supported by the provider for .NET Framework that are not supported for .NET Standard 2.0, see Known Issues and Usage Notes.
5
Documentation
For more information about developing .NET applications, see Zen Data Provider for .NET Guide and Zen Programmer’s Guide in the Zen developer documentation.
Samples
The following table summarizes the samples provided with Zen ADO.NET Data Provider for .NET Standard 2.0 in a directory named Samples.
 
The following example illustrates the first sample in the list above:
dotnet .\AdoNetCore2_0ProviderTest.dll -connection "Host=localhost;Port=1583;Database=demodata;" -sql "SELECT * FROM Billing;"
Known Issues and Usage Notes
The Actian community forums and knowledge base both enable you to search for a history log that lists issues fixed and enhancements added since the previous release. You can also find a list of general known issues in addition to those specifically listed here.
Zen ADO.NET Data Provider for .NET Standard 2.0 does not support the following features of the Zen ADO.NET Data Provider for .NET Framework:
Since the .NET Standard 2.0 provider does not yet support the data tools in the Zen ADO.NET Data Provider for .NET Framework SDK, the Zen ADO.NET Data Provider for .NET Standard 2.0 SDK does not integrate the tools into Visual Studio. If the Framework SDK tools were previously integrated, they will work only with the .NET Framework provider assembly installed in the GAC.
The data provider for .NET Standard 2.0 does not support Entity Framework development.
Performance Counters are not supported in .NET Standard 2.0.
Since the provider is intended for cross-platform development, it always chooses the default encoding of the operating system.
The CreatePermission(PermissionState) method is not supported in .NET Standard 2.0.
Zen ADO.NET Data Provider for .NET Framework writes Encoding.BodyName for Char, VarChar, and LongVarChar columns when pushing data to the user. Since Encoding.BodyName is not supported in .NET Standard 2.0, the Zen ADO.NET Data Provider for .NET Standard 2.0 uses Encoding.WebName instead.
UWP Applications
When you are prompted to select a minimum version for a UWP application project, if both of the following things are true:
Then any application built using the Zen ADO.NET Data Provider for .NET Standard 2.0 will report the following runtime error:
Exception: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
To correct this issue, open the NuGet Package Manager and update the Microsoft.NETCore.UniversalWindowsPlatform package to version 6.1.9 or later.
Technical Support
You can find information and obtain help from several online options at the Actian website:
Community Forums. Join the technical discussion under Actian Zen.
Knowledge Base. Search articles for answers and solutions others have found useful.
Technical Support. Open a help ticket, submit a defect, or purchase services.
Disclaimer
ACTIAN CORPORATION LICENSES THE SOFTWARE AND DOCUMENTATION PRODUCT TO YOU OR YOUR COMPANY SOLELY ON AN "AS IS" BASIS AND SOLELY IN ACCORDANCE WITH THE TERMS AND CONDITIONS OF THE ACCOMPANYING LICENSE AGREEMENT.
Copyright © 2020 Actian Corporation. All Rights Reserved.