updated to entity framework v6 and fixed MySQL code generation