I am getting the following error in my global.aspx file
Error 1 The type arguments for method cannot be inferred from the usage. Try specifying the type arguments explicitly.
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
Database.SetInitializer(new DropCreateDatabaseIfModelChanges<SalesERPDAL>());
}
}
Error 1 The type arguments for method 'System.Data.Entity.Database.SetInitializer(System.Data.Entity.IDatabaseInitializer)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
Error 2 The type or namespace name 'SalesERPDAL' could not be found (are you missing a using directive or an assembly reference?)
I don't get the errors, it was working until I got an error about The model backing the context has changed since the database was created.
What do I need to do to get it working ?
SalesERPDALis the same namespace? If not do you need to add ausingdirective? - D Stanley