Skip to content

Commit 0dc6400

Browse files
authored
Merge pull request #1 from platyscript/generate-sample-yaml
Add sample yaml file
2 parents a47d92d + bca11a0 commit 0dc6400

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# the connection string to the database
2+
connectionString: "Data Source=(local);Initial Catalog=Tracker;Integrated Security=True"
3+
4+
# the database provider name. Default:SqlServer
5+
provider: SqlServer
6+
7+
# config name to read the connection string from the user secrets file
8+
connectionName: "ConnectionStrings:Generator"
9+
10+
# the user secret identifier, can be shared with .net core project
11+
userSecretsId:
12+
"984ef0cf-2b22-4fd1-876d-e01499da4c1f"
13+
14+
# tables to include or empty to include all
15+
tables:
16+
- Priority
17+
- Status
18+
- Task
19+
- User
20+
21+
# schemas to include or empty to include all
22+
schemas:
23+
- dbo
24+
25+
# exclude tables or columns
26+
exclude:
27+
# list of expressions for tables to exclude, source is Schema.TableName
28+
tables:
29+
- exact: dbo.SchemaVersions
30+
- regex: dbo\.SchemaVersions$
31+
# list of expressions for columns to exclude, source is Schema.TableName.ColumnName
32+
columns:
33+
- exact: dbo.SchemaVersions\.Version
34+
- regex: dbo\.SchemaVersions\.Version$
35+
36+
# how to generate entity class names from the table name. Preserve|Plural|Singular. Default: Singular
37+
entityNaming: Singular
38+
39+
# how to generate relationship collections names for the entity. Default: Plural
40+
relationshipNaming: Plural
41+
42+
# Rename entities and properties with regular expressions. Matched expressions will be removed.
43+
renaming:
44+
entities:
45+
- ^(sp|tbl|udf|vw)_
46+
properties:
47+
- ^{Table.Name}(?=Id|Name)

0 commit comments

Comments
 (0)