ajpaz - you may need to "map" your existing model to a database table programmatically. I assume from the error message that it is looking for a FavoriteProject table / class mapping. perhaps db has it defined as the only one, in which case try:
protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Entity<FavouriteProjects>().ToTable("FavouriteProject"); }
you also need to do dbset as above (or some plural permutation):
public DbSet<FavouriteProjects> FavouriteProjects{ get; set; }
maybe a few miles just a thought
[edit] - redefinition of the 1st dbcontext code in web.config (in the connectionstrings [name MUST section matches your dbcontext name]):
<add name="DashboardContext" connectionString="Data Source=remote.sqlserver.server;Initial Catalog=code_first_db;Persist Security Info=True;MultipleActiveResultSets=True;User ID=code_first_db_user;Password=password" providerName="System.Data.SqlClient"/>
jim tollan
source share