Skip to content

Commit 6a19b23

Browse files
committed
modify crime sample to use orchard database
1 parent a686d81 commit 6a19b23

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/Site/Properties/launchSettings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"commandName": "Project",
1212
"launchBrowser": true,
1313
"environmentVariables": {
14-
"ASPNETCORE_ENVIRONMENT": "Development"
14+
"ASPNETCORE_ENVIRONMENT": "Development",
15+
"TEST_VAR": "test_val"
1516
},
1617
"applicationUrl": "http://0.0.0.0:5000",
1718
"hotReloadEnabled": true

src/Site/samples/sacramento-crime/change-color.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<connections>
2323
<add name="input" provider="sqlite" file="App_Data/batches.db" />
24-
<add name="target" provider="sqlserver" database="Junk" />
24+
<add name="orchard" />
2525
</connections>
2626

2727
<entities>
@@ -37,7 +37,7 @@
3737
<add name="Id" type="int" t="copy(BatchValue).convert()" />
3838
<add name="Dml">
3939
<transforms>
40-
<add method="run" connection="target" command="UPDATE sacramento_crime SET geojson_color = @Color WHERE &quot;id&quot; = @Id;" />
40+
<add method="run" connection="orchard" command="UPDATE sacramento_crime SET geojson_color = @Color WHERE &quot;id&quot; = @Id;" />
4141
</transforms>
4242
</add>
4343
</calculated-fields>

src/Site/samples/sacramento-crime/load.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<cfg name="sacramento_" mode="init">
1+
<cfg name="sacramento_" mode="init" output="orchard">
22
<parameters/>
33
<connections>
44
<add name="input" provider="file" file="samples/sacramento-crime/SacramentoCrimeJanuary2006.csv" delimiter="," start="2" />
5-
<add name="output" provider="sqlserver" database="Junk" />
5+
<add name="orchard" />
66
</connections>
77
<entities>
88
<add name="crime">

src/Site/samples/sacramento-crime/report.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<cfg name="report">
22

33
<connections>
4-
<add name="input" provider="sqlserver" database="Junk" />
4+
<add name="orchard" />
55
</connections>
66

77
<actions>
88
<add name="change-color" description="Change Color" modal="true" />
99
</actions>
1010

1111
<entities>
12-
<add name="sacramento_crime">
12+
<add name="sacramento_crime" input="orchard">
1313
<filter>
1414
</filter>
1515
<fields>

0 commit comments

Comments
 (0)