Skip to content

Commit 75b05b9

Browse files
authored
fix: Fix template config file: remove invalid sections and experimental features (#56)
1 parent bde9fff commit 75b05b9

6 files changed

Lines changed: 15 additions & 39 deletions

File tree

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2+
"$schema": "https://raw.githubusercontent.com/ErikEJ/EFCorePowerTools/master/samples/efcpt-config.schema.json",
23
"names": {
34
"root-namespace": "EntityFrameworkCoreProject",
45
"dbcontext-name": "SampleDbContext",
56
"dbcontext-namespace": null,
6-
"entity-namespace": "EntityFrameworkCoreProject.Models"
7+
"model-namespace": "EntityFrameworkCoreProject.Models"
78
},
89
"code-generation": {
910
"use-t4": true,
@@ -12,8 +13,6 @@
1213
},
1314
"file-layout": {
1415
"output-path": "Models",
15-
"output-dbcontext-path": ".",
16-
"use-schema-folders-preview": true,
17-
"use-schema-namespaces-preview": false
16+
"output-dbcontext-path": "."
1817
}
1918
}

samples/custom-renaming/EntityFrameworkCoreProject/efcpt-config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"use-t4": false
1212
},
1313
"file-layout": {
14-
"output-path": "Models",
15-
"use-schema-folders-preview": false
14+
"output-path": "Models"
1615
},
1716
"tables": [
1817
{ "name": "[dbo].[tblCustomers]" },
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
{
2+
"$schema": "https://raw.githubusercontent.com/ErikEJ/EFCorePowerTools/master/samples/efcpt-config.schema.json",
23
"names": {
34
"root-namespace": "EntityFrameworkCoreProject",
45
"dbcontext-name": "SampleDbContext",
56
"dbcontext-namespace": null,
6-
"entity-namespace": "EntityFrameworkCoreProject.Models"
7+
"model-namespace": "EntityFrameworkCoreProject.Models"
78
},
89
"code-generation": {
910
"use-t4": true,
1011
"t4-template-path": ".",
1112
"enable-on-configuring": false
12-
1313
},
1414
"file-layout": {
1515
"output-path": "Models",
16-
"output-dbcontext-path": ".",
17-
"use-schema-folders-preview": true,
18-
"use-schema-namespaces-preview": false
16+
"output-dbcontext-path": "."
1917
}
2018
}
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
{
2+
"$schema": "https://raw.githubusercontent.com/ErikEJ/EFCorePowerTools/master/samples/efcpt-config.schema.json",
23
"names": {
34
"root-namespace": "EntityFrameworkCoreProject",
45
"dbcontext-name": "SampleDbContext",
56
"dbcontext-namespace": null,
6-
"entity-namespace": "EntityFrameworkCoreProject.Models"
7+
"model-namespace": "EntityFrameworkCoreProject.Models"
78
},
89
"code-generation": {
910
"use-t4": true,
1011
"t4-template-path": ".",
1112
"enable-on-configuring": false
12-
1313
},
1414
"file-layout": {
1515
"output-path": "Models",
16-
"output-dbcontext-path": ".",
17-
"use-schema-folders-preview": true,
18-
"use-schema-namespaces-preview": false
16+
"output-dbcontext-path": "."
1917
}
2018
}

samples/split-data-and-models-between-multiple-projects/src/SampleApp.Models/efcpt-config.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://raw.githubusercontent.com/ErikEJ/EFCorePowerTools/master/samples/efcpt-config.schema.json",
23
"names": {
34
"root-namespace": "SampleApp",
45
"dbcontext-name": "SampleDbContext",
@@ -12,8 +13,6 @@
1213
},
1314
"file-layout": {
1415
"output-path": "Models",
15-
"output-dbcontext-path": ".",
16-
"use-schema-folders-preview": false,
17-
"use-schema-namespaces-preview": false
16+
"output-dbcontext-path": "."
1817
}
1918
}
Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,9 @@
11
{
2+
"$schema": "https://raw.githubusercontent.com/ErikEJ/EFCorePowerTools/master/samples/efcpt-config.schema.json",
23
"names": {
34
"root-namespace": "EfcptProject",
45
"dbcontext-name": "ApplicationDbContext",
56
"dbcontext-namespace": "EfcptProject.Data",
6-
"entity-namespace": "EfcptProject.Data.Entities"
7-
},
8-
"code-generation": {
9-
"use-nullable-reference-types": true,
10-
"use-date-only-time-only": true,
11-
"enable-on-configuring": false,
12-
"use-t4": false
13-
},
14-
"file-layout": {
15-
"output-path": "Models",
16-
"output-dbcontext-path": ".",
17-
"use-schema-folders-preview": true,
18-
"use-schema-namespaces-preview": true
19-
},
20-
"table-selection": [
21-
{
22-
"schema": "dbo",
23-
"include": true
24-
}
25-
]
7+
"model-namespace": "EfcptProject.Data.Entities"
8+
}
269
}

0 commit comments

Comments
 (0)