I'm very new to MVC 3 and I'm having problem with the Code First approach. I created 2 models, a context, view, etc and everything works perfect (able to add, delete, etc.)
But when I check in Microsoft SQL Management Studio, I see 2 databases. One of them is the one I asked for in my web.config. This one contain only the membership table
<connectionStrings>
<add name="RecettesMaison" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=RecettesMaison;User Id=user;Password=password;"
providerName="System.Data.SqlClient"/>
The second one has a strange name: "RecettesMaison.DB.RecettesMaisonContext". It's the one containing the generated table...
I would like to know where this name come from and how can I do so all the generated table goes into my connectionstring only with the name I specified. I just want one database. I'm sure it's just one tag somewhere in the context but I can't find this information on google.
EDIT: In a nutshel, I want my database to keep using the DropCreateDatabaseIfModelChanges<RecettesMaisonContext>
but I want it to create the database with the name specified in the connection string, which is not the case (It creates a name using the namespace and the name of the database context)
Thanks!