Skip to content

History / Settings.IncludeCodeGeneratedAttribute

Revisions

  • Stub the generator version in the GeneratedCode sample Regenerated after the version was stubbed to v4.x.x, so this snippet no longer changes on every release.

    @sjh37 sjh37 committed Aug 30, 2026
  • Add per-setting pages for file layout and the DbContext Ten more: GenerateSeparateFiles, UseRegions, UsePragma, UseResharper, IncludeCodeGeneratedAttribute, and shared pages for the header/footer text settings, the two DbContext name settings, the two base class settings, and AddUnitTestingDbContext with FakeDbContextInDebugOnlyMode. Settings that are always set together, or that only make sense read together, share a page. Four separate stubs saying 'see the other one' would be worse documentation than one page that explains the pair. UseResharper's page leads with the fact that the shipped Database.tt sets it true while the class initialiser says false.

    @sjh37 sjh37 committed Aug 30, 2026