-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
Closes #401
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,18 +8,25 @@ public static void ScalePrecision8DecimalType<T>(this IRuleBuilder<T, decimal> r | |
{ | ||
ruleBuilder.ScalePrecision(8, 19); | ||
Check warning on line 9 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 9 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 9 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (macOS-latest)
Check warning on line 9 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (macOS-latest)
Check warning on line 9 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (windows-latest)
Check warning on line 9 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (windows-latest)
|
||
} | ||
|
||
public static void ScalePrecision2DecimalType<T>(this IRuleBuilder<T, decimal> ruleBuilder) | ||
{ | ||
ruleBuilder.ScalePrecision(2, 13); | ||
Check warning on line 14 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 14 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 14 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (macOS-latest)
Check warning on line 14 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (macOS-latest)
Check warning on line 14 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (windows-latest)
Check warning on line 14 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (windows-latest)
|
||
} | ||
|
||
public static void ScalePrecision8DecimalType<T>(this IRuleBuilder<T, decimal?> ruleBuilder) | ||
{ | ||
ruleBuilder.ScalePrecision(8, 19); | ||
Check warning on line 19 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 19 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 19 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (macOS-latest)
Check warning on line 19 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (macOS-latest)
Check warning on line 19 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (windows-latest)
Check warning on line 19 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (windows-latest)
|
||
} | ||
|
||
public static void ScalePrecision2DecimalType<T>(this IRuleBuilder<T, decimal?> ruleBuilder) | ||
{ | ||
ruleBuilder.ScalePrecision(2, 13); | ||
Check warning on line 24 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 24 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (macOS-latest)
Check warning on line 24 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (windows-latest)
|
||
} | ||
|
||
public static void ScalePrecisionPercentualeDecimalType<T>(this IRuleBuilder<T, decimal?> ruleBuilder) | ||
{ | ||
ruleBuilder.ScalePrecision(2, 6); | ||
Check warning on line 29 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (ubuntu-latest)
Check warning on line 29 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (macOS-latest)
Check warning on line 29 in Extensions/DecimalRuleExtensions.cs GitHub Actions / build (windows-latest)
|
||
} | ||
} | ||
} |