04 Oct 2013
06 Nov 2013
Link to this post
To create a redistributable module that is compiled into a .dll for easy installation across
I created a Custom Module Patient by clicking my solution then Add Project--> Sitefinty Custom Module (My Data Provider is Entity Framework). I enabled automatic migrations and then created a widget to display all my patients in a RadGrid and everything is working well.
When I add my Patient.dll to another website in a different solution, I get this error when I try to create a patient:
Migrations is enabled for context 'PatientsEFDbContext' but the database does not exist or contains no mapped tables. Use Migrations to create the database and its tables, for example by running the 'Update-Database' command from the Package Manager Console.
How do I fix this problem? I have been stuck on this issue for a week.