API/CodeSamples/Changing-Decimal-Type-Precision-number-number-Appearance-star-Adding-Custom-Formats.md
... ...
@@ -1,18 +1,17 @@
1 1
2 2
3
-
4 3
#Changing Decimal Type Precision
5 4
6 5
##About
7 6
8
-Below is the SQL sample to create a View with 1 million records using the Northwind example database. This query can be used to load test your application with before you send it out to production.
7
+Below is the code sample to change the hard-coded Decimal Type Precision from DECIMAL(18,6) to NUMERIC(22,8)
9 8
10 9
11 10
## What To Change
12 11
13 12
14 13
15
-DECIMAL(18,6) to NUMERIC(22,8)
14
+DECIMAL(18,6) to NUMERIC(22,8):
16 15
```c#
17 16
List<KeyValuePair<string, string>> typeOverrides = AdHocContext.Driver.NativeTypesOverrides;
18 17
for (int i = 0; i < typeOverrides.Count; i++)