I created an entity called Food in edmx file.
Now I just need to populate it with hard-coded items: Pasta, Beef, Pork
How do I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is this entity mapped to a table in your database?
If so (and I’d hope it is), insert the data directly into the database table using a SQL script or edit the table in data sheet view through a data connection in Visual Studio.