Entity Framework Code First Seed database
<p>I am using E.F. with Code First approach... Now I have to fill the database with some data... but I cannot do it easily... Simething is not clear... 
I have googled but every solution I have found suppose I must create a custom Initilization... but I do not want to create a custom Initialization..</p>

<p>What I need is a method the everytime I launch some tests DROP the database, RE-CREATE it and fill it with some data.</p>

<p>What I have tried to do is:</p>

<pre><code>public PublicAreaContext()
    : base("PublicAreaContext")
{
    Database.SetInitializer&lt;PublicAreaContext&gt;(new DropCreateDatabaseAlways&lt;PublicAreaContext&gt;());
}
</code></pre>

<p>Then I have tried to impement the <code>Seed</code> method inside the <code>Configuration</code> class. So: </p>

<pre><code>internal sealed class Configuration : DbMigrationsConfiguration&lt;PublicAreaContext&gt;
{
    protected override void Seed(PublicAreaContext context)
    {
        ...
    }
}
</code></pre>

<p>But when I try to debug I never go in the seed method... I go in constructor of the <code>Configuration</code> class, but not in the seed... why?</p>

<p>Thanx for your help</p>