6

would like to set this convention up globally if possible.

Jon Erickson
  • 112,242
  • 44
  • 136
  • 174

1 Answers1

8

You need a convention, of which there are some shortcuts for the common scenarios. Specifically, there's a DefaultAccess shortcut, with a CamelCaseField(prefix) method.

.Conventions.Add(
  DefaultAccess.CamelCaseField(CamelCasePrefix.Underscore)
);
James Gregory
  • 14,173
  • 2
  • 42
  • 60