Refactored CodeGenerator using partial class for Entity and EntityRepository.
This enables a more natural API:
var x = e.position.x;
repo.isAnimating;