← All recipes
Moderne licensed

Add override to DbParameter.Precision/Scale

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.AddOverrideToDbParameterPrecisionScaleArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

As of .NET Framework 4.5.1, DbParameter.Precision and DbParameter.Scale are public virtual properties. Adds the override modifier to Precision/Scale properties declared on a DbParameter subclass so the provider compiles against the new target.

Single recipecsharpdotnetnet-frameworkmigrationado-netProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.AddOverrideToDbParameterPrecisionScale

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet