Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is it possible to add an entity to a database. Initially I have updated a database from a model, now I created a new entity on the model, now I would like to add this entity to the database. How can I do this

Initial look of my edmx is as follows

http://imageshack.us/photo/my-images/194/samplegk.jpg/[^]

I added an entity by right clicking and select add entity and mapped accordingly as per required, now my edmx looks as follows

http://imageshack.us/photo/my-images/72/sample1s.jpg/[^]

Now I would like to update this table DeptHead to the database
Posted
Updated 10-Dec-12 19:38pm
v2

1 solution

Check this answer if you get some help out:
Click here[^]
 
Share this answer
 
Comments
demouser743 11-Dec-12 1:18am    
I am not asking about updating the database, I would like to create a new entity in edmx file, which I would like to add it as a table in the corresponding DB, which is having some tables
Prasad_Kulkarni 11-Dec-12 1:29am    
..and that's what answer refers to, you need to update model from database know, correct me if I am wrong?
demouser743 11-Dec-12 1:38am    
check my updated question along with images

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