Skip to content

Commit 0e28833

Browse files
committed
Update configuration.md
1 parent f38fa15 commit 0e28833

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

docs/configuration.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ data:
7676
propertyNaming: Preserve|Plural|Suffix
7777
#include XML documentation
7878
document: false
79+
# file header
80+
header: // Context header
7981

8082
# entity class file configuration
8183
entity:
@@ -93,8 +95,10 @@ data:
9395
mappingAttributes: true
9496
# Generate class names with prefixed schema name eg. dbo.MyTable = DboMyTable
9597
prefixWithSchemaName: false
98+
# file header
99+
header: // Entity header
96100

97-
# Rename entities and properties with regular expressions
101+
# Rename entities and properties with regular expressions. Matched expressions will be removed
98102
renaming:
99103
# list of regular expressions to clean entity names
100104
entities:
@@ -113,6 +117,8 @@ data:
113117

114118
temporal: false # if temporal table mapping is enabled. Default true
115119
rowVersion: ByteArray|Long|ULong # How row versions should be mapped. Default ByteArray
120+
# file header
121+
header: // Mapping header
116122

117123
# query extension class file configuration
118124
query:
@@ -123,6 +129,8 @@ data:
123129
directory: '{Project.Directory}\Data\Queries' # the mapping class output directory
124130
#include XML documentation
125131
document: false
132+
# file header
133+
header: // Query header
126134

127135
#---------------------------------#
128136
# model section - controls the optional view model generation
@@ -132,6 +140,9 @@ model:
132140
shared:
133141
namespace: '{Project.Namespace}.Domain.Models' # the model class namespace
134142
directory: '{Project.Directory}\Domain\Models' # the mapping class output directory
143+
# file header
144+
header: '#pragma warning disable IDE0130 // Namespace does not match folder structure'
145+
135146
# regular expression of entities and properties to exclude in all models
136147
exclude:
137148
# list of regular expressions of entity names
@@ -151,6 +162,11 @@ model:
151162
baseClass: EntityReadModel # the read model base class
152163
namespace: '{Project.Namespace}.Domain.Models'
153164
directory: '{Project.Directory}\Domain\Models'
165+
# Multi-line file header
166+
header: |
167+
// * * * * * * * * * * * *
168+
// Read Model File Header
169+
// * * * * * * * * * * * *
154170
exclude:
155171
entities: []
156172
properties: []
@@ -161,7 +177,8 @@ model:
161177
name: '{Entity.Name}CreateModel' # the create model class name
162178
baseClass: EntityCreateModel # the create model base class
163179
namespace: '{Project.Namespace}.Domain.Models'
164-
directory: '{Project.Directory}\Domain\Models'
180+
directory: '{Project.Directory}\Domain\Models'
181+
header: '// create model file header' # file header
165182
exclude:
166183
entities: []
167184
properties: []
@@ -173,6 +190,7 @@ model:
173190
baseClass: EntityUpdateModel # the update model base class
174191
namespace: '{Project.Namespace}.Domain.Models'
175192
directory: '{Project.Directory}\Domain\Models'
193+
header: '// update model file header' # file header
176194
exclude:
177195
entities: []
178196
properties: []
@@ -184,6 +202,7 @@ model:
184202
baseClass: Profile
185203
namespace: '{Project.Namespace}.Domain.Mapping'
186204
directory: '{Project.Directory}\Domain\Mapping'
205+
header: '// mapper file header' # file header
187206

188207
# FluentValidation class configuration
189208
validator:
@@ -192,6 +211,8 @@ model:
192211
baseClass: 'AbstractValidator<{Model.Name}>'
193212
namespace: '{Project.Namespace}.Domain.Validation'
194213
directory: '{Project.Directory}\Domain\Validation'
214+
header: '// validator file header' # file header
215+
195216
# script templates
196217
script:
197218
# collection script template with EntityContext as a variable

0 commit comments

Comments
 (0)