In any code-generation scenario, you're supposed to use partial classes so you don't have to worry about getting your custom changes overwritten.