You could download the Samples Kit and have a look at the Ajax With Data Annotations sample. It demonstrates exactly this setup.
Hope that helps.
OpenAccess ORM Q2 2013 brings you a more powerful code generation and a unique Bulk Operations support with LINQ syntax. Check out the list of new functionality and improvements shipped with this release.