-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathDatabase.yaml
23 lines (22 loc) · 6.15 KB
/
Database.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
configType: Beef.CodeGen.Config.Database.CodeGenConfig, Beef.CodeGen.Core
generators:
- { type: 'Beef.CodeGen.Generators.DatabaseEfModelGenerator, Beef.CodeGen.Core', template: 'DbEfModel_cs', file: '{{EFModelName}}.cs', directory: '{{Root.PathBusiness}}/Data/EfModel/Generated', text: 'DatabaseEfModelGenerator: Business/Data/EfModel' }
- { type: 'Beef.CodeGen.Generators.DatabaseEfModelBuilderCodeGenerator, Beef.CodeGen.Core', template: 'DbEfModelBuilder_cs', file: 'ModelBuilderExtensions.cs', directory: '{{Root.PathBusiness}}/Data/EfModel/Generated', text: 'DatabaseEfModelBuilderCodeGenerator: Business/Data/EfModel' }
- { type: 'Beef.CodeGen.Generators.DatabaseGetCodeGenerator, Beef.CodeGen.Core', template: 'DbSpTableGet_sql', file: '{{StoredProcedureName}}.sql', directory: '{{Root.PathDatabaseSchema}}/{{Parent.Schema}}/Stored Procedures/Generated', text: 'DatabaseGetCodeGenerator: Database/Schema/Xxx/Stored Procedures' }
- { type: 'Beef.CodeGen.Generators.DatabaseGetCollCodeGenerator, Beef.CodeGen.Core', template: 'DbSpTableGetColl_sql', file: '{{StoredProcedureName}}.sql', directory: '{{Root.PathDatabaseSchema}}/{{Parent.Schema}}/Stored Procedures/Generated', text: 'DatabaseGetCollCodeGenerator: Database/Schema/Xxx/Stored Procedures' }
- { type: 'Beef.CodeGen.Generators.DatabaseCreateCodeGenerator, Beef.CodeGen.Core', template: 'DbSpTableCreate_sql', file: '{{StoredProcedureName}}.sql', directory: '{{Root.PathDatabaseSchema}}/{{Parent.Schema}}/Stored Procedures/Generated', text: 'DatabaseCreateCodeGenerator: Database/Schema/Xxx/Stored Procedures' }
- { type: 'Beef.CodeGen.Generators.DatabaseUpdateCodeGenerator, Beef.CodeGen.Core', template: 'DbSpTableUpdate_sql', file: '{{StoredProcedureName}}.sql', directory: '{{Root.PathDatabaseSchema}}/{{Parent.Schema}}/Stored Procedures/Generated', text: 'DatabaseUpdateCodeGenerator: Database/Schema/Xxx/Stored Procedures' }
- { type: 'Beef.CodeGen.Generators.DatabaseUpsertCodeGenerator, Beef.CodeGen.Core', template: 'DbSpTableUpsert_sql', file: '{{StoredProcedureName}}.sql', directory: '{{Root.PathDatabaseSchema}}/{{Parent.Schema}}/Stored Procedures/Generated', text: 'DatabaseUpsertCodeGenerator: Database/Schema/Xxx/Stored Procedures' }
- { type: 'Beef.CodeGen.Generators.DatabaseDeleteCodeGenerator, Beef.CodeGen.Core', template: 'DbSpTableDelete_sql', file: '{{StoredProcedureName}}.sql', directory: '{{Root.PathDatabaseSchema}}/{{Parent.Schema}}/Stored Procedures/Generated', text: 'DatabaseMergeCodeGenerator: Database/Schema/Xxx/Stored Procedures' }
- { type: 'Beef.CodeGen.Generators.DatabaseMergeCodeGenerator, Beef.CodeGen.Core', template: 'DbSpTableMerge_sql', file: '{{StoredProcedureName}}.sql', directory: '{{Root.PathDatabaseSchema}}/{{Parent.Schema}}/Stored Procedures/Generated', text: 'DatabaseGetCollCodeGenerator: Database/Schema/Xxx/Stored Procedures' }
- { type: 'Beef.CodeGen.Generators.DatabaseQueryViewCodeGenerator, Beef.CodeGen.Core', template: 'DbVwQuery_sql', file: '{{ViewName}}.sql', directory: '{{Root.PathDatabaseSchema}}/{{ViewSchema}}/Views/Generated', text: 'DatabaseQueryViewCodeGenerator: Database/Schema/Xxx/Views' }
- { type: 'Beef.CodeGen.Generators.DatabaseUdtCodeGenerator, Beef.CodeGen.Core', template: 'DbUdtTableList_sql', file: 'udt{{Name}}List.sql', directory: '{{Root.PathDatabaseSchema}}/{{Schema}}/Types/User-Defined Table Types/Generated', text: 'DatabaseUdtCodeGenerator: Database/Schema/Xxx/Types/User-Defined Table Types' }
- { type: 'Beef.CodeGen.Generators.DatabaseTvpCodeGenerator, Beef.CodeGen.Core', template: 'DbTvpTable_cs', file: '{{Tvp}}DataTvp.cs', directory: '{{Root.PathBusiness}}/Data/Generated', text: 'DatabaseTvpCodeGenerator: Business/Data' }
# The following enablea the Event Outbox capabilities that leverage DbEx (https://github.com/Avanade/dbex).
- { type: 'Beef.CodeGen.Generators.DatabaseOutboxSchemaCreateCodeGenerator, Beef.CodeGen.Core', template: 'SchemaEventOutbox_sql', file: "{{format '{0:yyyyMMdd-HHmmss}' Root.DateTimeUtcNow}}-01-create-{{lower OutboxSchema}}-schema.sql", genOnce: true, genOncePattern: '*-01-create-{{lower OutboxSchema}}-schema.sql', directory: '{{Root.PathDatabaseMigrations}}', text: 'OutboxCodeGenerator: Database/Migrations (GenOnce)' }
- { type: 'Beef.CodeGen.Generators.DatabaseOutboxCodeGenerator, Beef.CodeGen.Core', template: 'TableEventOutbox_sql', file: "{{format '{0:yyyyMMdd-HHmmss}' Root.DateTimeUtcNow}}-02-create-{{lower OutboxSchema}}-{{lower OutboxTable}}-table.sql", genOnce: true, genOncePattern: '*-02-create-{{lower OutboxSchema}}-{{lower OutboxTable}}-table.sql', directory: '{{Root.PathDatabaseMigrations}}', text: 'OutboxCodeGenerator: Database/Migrations (GenOnce)' }
- { type: 'Beef.CodeGen.Generators.DatabaseOutboxCodeGenerator, Beef.CodeGen.Core', template: 'TableEventOutboxData_sql', file: "{{format '{0:yyyyMMdd-HHmmss}' Root.DateTimeUtcNow}}-03-create-{{lower OutboxSchema}}-{{lower OutboxTable}}data-table.sql", genOnce: true, genOncePattern: '*-03-create-{{lower OutboxSchema}}-{{lower OutboxTable}}data-table.sql', directory: '{{Root.PathDatabaseMigrations}}', text: 'OutboxCodeGenerator: Database/Migrations (GenOnce)' }
- { type: 'Beef.CodeGen.Generators.DatabaseOutboxCodeGenerator, Beef.CodeGen.Core', template: 'SpEventOutboxEnqueue_sql', file: '{{OutboxEnqueueStoredProcedure}}.sql', directory: '{{Root.PathDatabaseSchema}}/{{OutboxSchema}}/Stored Procedures/Generated', text: 'OutboxCodeGenerator: Database/Schema/Xxx/Types/Stored Procedures' }
- { type: 'Beef.CodeGen.Generators.DatabaseOutboxCodeGenerator, Beef.CodeGen.Core', template: 'SpEventOutboxDequeue_sql', file: '{{OutboxDequeueStoredProcedure}}.sql', directory: '{{Root.PathDatabaseSchema}}/{{OutboxSchema}}/Stored Procedures/Generated', text: 'OutboxCodeGenerator: Database/Schema/Xxx/Types/Stored Procedures' }
- { type: 'Beef.CodeGen.Generators.DatabaseOutboxCodeGenerator, Beef.CodeGen.Core', template: 'EventOutboxEnqueue_cs', file: 'EventOutboxEnqueue.cs', directory: '{{Root.PathBusiness}}/Data/Generated', text: 'OutboxCodeGenerator: Business/Data' }
- { type: 'Beef.CodeGen.Generators.DatabaseOutboxCodeGenerator, Beef.CodeGen.Core', template: 'EventOutboxDequeue_cs', file: 'EventOutboxDequeue.cs', directory: '{{Root.PathBusiness}}/Data/Generated', text: 'OutboxCodeGenerator: Business/Data' }