Repository navigation
Conversation
…Entities' context, and their copies in FullStack and Csla) name their output's file (GetFileName), as their master templates and projects name it: Customer.cs, CustomerRepository.cs, CustomerConfiguration.cs, category.ts, README.md. VS Code's output tab and Save Output As use the name; what the masters generate is as before
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The samples' templates for one table now override
GetFileName(), returning the name their master template or project already writes:Customer.cs,CustomerRepository.cs,CustomerBuilder.cs,CustomerRepositoryTests.csCustomer.cs,CustomerConfiguration.cs,AppDbContext.csCategory.cs,category.ts.Lookup.Namegives the enum's name without reading the table.README.mdVS Code names a template's output tab after this name, one tab per name: running Record.cst for Account and then Category gives
Account output.csandCategory output.cs. Save Output As suggests the same name. A template with no table set falls back to the base name.What the masters generate is unchanged: Dapper, LookupEnums, MarkdownDocs, ModernEntities, TestData, TableToClass, Csla and FullStack each produced the same files with the old templates and the new ones. Generator's tests that use the samples pass, including the test that the copies stay identical.