Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to perform select,insert ,update and delete operations on tables Employee and Department which are availble in ram08512 database in my sql server.


for that i have created mvc4 empty application in vs 2012.Then installed entity framework from tools menu.

after i have added Ado.net entity Data model to the Model folder in application.then specified connection string and created employee and department entities.till now i didnt get any errors.


while i build application i am getting these errors:

C#
Error	1	Running transformation: System.Runtime.InteropServices.COMException (0x80004005): Cannot find file "F:\rampractice\RAMAPP\RAMAPP\Models\Employee.cs".


Error	2	The type or namespace name 'Department' could not be found (are you missing a using directive or an assembly reference?)	F:\rampractice\RAMAPP\RAMAPP\Models\EmployeeDataModel.Context.cs	29	30	RAMAPP
Error	3	The type or namespace name 'Employee' could not be found (are you missing a using directive or an assembly reference?)	F:\rampractice\RAMAPP\RAMAPP\Models\EmployeeDataModel.Context.cs	30	30	RAMAPP

please give some valuble words to solve my problem.
Posted
Comments
Krunal Rohit 22-Nov-15 8:23am    
Remove the EDMX, Rebuild the solution and Add the new EDMX from the DB.

-KR

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900