Though there are technical discussions in the field what is best way, there are two commonly used scenarios:
1) Using repositories (Catel does support implementations of repositories for both EF5 and EF6) 2) Use a service that will handle the functions and call that in the view model like any other service.