update Class Generate, added template crud