You're writing the same code over and over again with only minor changes, and you're about to do it again. Stop. If you're creating a standalone class (either a class that you'll call from your ...
EF uses the standard Visual Studio Custom Tool mechanism and Single File Generator. This infrastructure allows a Custom Tool, generally a code generator, to be attached to any loaded file. If you open ...