如何使用代码优先方法在数据库架构更改时添加/更新实体类? [英] How to add/update entity classes when database schema changes by using code first approach?

查看:88
本文介绍了如何使用代码优先方法在数据库架构更改时添加/更新实体类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用EF Power工具从现有数据库创建数据库上下文。我想在架构更改完成后添加/更新实体类。我无法根据架构更改添加/更新类。有人建议我实施这个场景。



先谢谢你..

I created on database context from existing database by using EF Power tools. I want to add/update entity classes whenever schema changes are done. I am unable to add/update classes as per schema changes. Anybody suggest me to implement the scenario.

Thanks in Advance..

推荐答案

这篇关于如何使用代码优先方法在数据库架构更改时添加/更新实体类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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