Danish Habib

Danish Habib

  • NA
  • 694
  • 233k

I have Simple website build in ASP.NET MVC 4

Dec 22 2016 10:15 AM
I have a simple website build in ASP.NET MVC4 unfortunately I get my laptop struck and i shut it down forcefully , and after that when i open my project in vs2010 it gives error so by previous backup files i change the csproj file , I have two to three Entity data model and as you know when u add entity data model by vs wizard it automatically created the Connection string object in the web.config file and I lost my connection string from web.config Now i add a new model just to add a connection string and I take all the tables while selecting the table for model wizard , Now it gives these two errors what is that 
1-
Error 2 Missing partial modifier on declaration of type 'BusinessApplicationTemplate.Models.Property'; another partial declaration of this type exists C:\Users\dhabib\Documents\Visual Studio 2010\Projects\MVC\BusinessApplicationTemplate\BusinessApplicationTemplate\Models\Property.cs 15 18 BusinessApplicationTemplate
 2-
Error 1 Missing partial modifier on declaration of type 'BusinessApplicationTemplate.Models.Service'; another partial declaration of this type exists C:\Users\dhabib\Documents\Visual Studio 2010\Projects\MVC\BusinessApplicationTemplate\BusinessApplicationTemplate\Models\Service.cs 9 19 BusinessApplicationTemplate
I have just one Service class and one Property Class why why it said there is already and you have to make it partial 

Answers (2)