How to add hard-coded values to an entity
I created an entity called Food in edmx file. Now I just need to populate it with hard-code开发者_如何学Pythond items: Pasta, Beef, Pork
How do I do that?
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.
精彩评论