Entity Framework apply migrations at runtime
<p>i'm creating a C# WinForms application which uses Entity Framework Code First and it is set to create the database if it doesn't exists.</p>

<p>Since the app is not distributed with a database, it creates it when it's needed, so i need to find a way to detect which migrations need to be applied for each case when i release a new version of the app.</p>

<p>How can i detect and apply needed migrations at runtime?</p>