Entity framework based code generator with automatic validations and helper methods