开发者

How to add hard-coded values to an entity

开发者 https://www.devze.com 2023-03-20 18:24 出处:网络
I created an entity called Food in edmx file. Now I just need to populate it with hard-code开发者_如何学Pythond items: Pasta, Beef, Pork

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消