Search code examples
c#entity-frameworkscaffolding

Scaffold repository class from Entity framework


I have a Model that is automatically created from a database using entity framework.

This is a project that is just used for data access.

Is it possible to use the scaffolding feature to generate repositories classes for the classes that comes in the model?

I hope that i make myself understood here.


Solution

  • Yes, if you have downloaded the newest Mvc3 Tools Update you can follow this example. It will end up creating your controller, views, and repositories.