Specifying the License Key in the Devart EF Core Model

Specifying the License Key in the Devart EF Core Model

This article is for dotConnect providers with ORM support (all except Universal and SQL Server).

When creating a Devart EF Core model, the license key is not required at design time. However, during execution the following error may appear:

Feature is not supported. This error is thrown by Devart .NET Standard assemblies if license key validation fails.

To avoid this error, the license key must be specified manually in the connection string. This is done in the OnConfiguring method of the DbContext file.

The screenshot below shows how the License Key parameter is added to the connection string inside the OnConfiguring method:



Summary

The license key is added directly in the connection string of the EF Core model. Defining it in the OnConfiguring method of the DbContext file ensures that license validation succeeds and the application runs without errors.
    • Related Articles

    • Error: “Feature is not supported” (license key validation in .NET Standard)

      This error occurs when Devart .NET Standard assemblies cannot validate a license key at runtime. The guidance applies to all dotConnect providers. After migrating a working .NET Framework application to .NET Core / .NET 6–9 and referencing NuGet ...
    • Where to Apply the License Key in dotConnect Providers

      License key usage in dotConnect providers varies depending on the target framework. In .NET Framework projects, licensing is managed automatically during installation, whereas .NET Core and later versions require the license key to be provided at ...
    • Where do I find my activation key?

      If you've recently purchased a product and are wondering where to find your activation key, here’s a simple guide to help you out. Check Your Email Your license key is provided to you via email after the purchase. Be sure to check the inbox of the ...
    • Can a Single License Be Shared by Two Users on a Remote Machine?

      According to the company's End User License Agreement (EULA) policy, each purchased license provides a key that can be used for activation on two machines simultaneously. For more details, please refer to the following link: Devart EULA. It's ...
    • How do I deactivate my license?

      Deactivating a license may be necessary in certain situations, such as transferring the license to a new device or resolving activation issues. Note: You must be the license owner to deactivate license. You can deactivate your license by following ...