使用POCO进行模型初步开发 [英] Model first development with POCO

查看:80
本文介绍了使用POCO进行模型初步开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我刚看过PDC 2009谈论EF。你已经展示了如何用poco取代生成的课程。

如果我要改变我的POCO课程。我怎么能把这些变化反映到数据库和映射xml文件。

最好的问候,
Alexey Zakharov。

Hi,

I've just watched PDC 2009 Talk about EF.

You've showed how generated classes could be replaced with poco.

If I will change my POCO classes. How could i reflect those changes to database and mapping xml files.

Best regards,
Alexey Zakharov.

推荐答案

2.右键单击:从模型中生成数据库...
3.获得.sql文件,可以在sql management studio中运行或安装有缺陷的sql azure explorer并尝试...在VS2010中运行.sql文件

1. load EF model designer in VS2010.
2. right-click: generate database from model...
3. you get a .sql file which you can run in sql management studio or install the buggy sql azure explorer and try... to run the .sql file within VS2010


这篇关于使用POCO进行模型初步开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆