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.