如何使用Entity Framework 4.3代码优先方法从现有数据库中清理生成POCO类? [英] How to cleanly generate POCO classes from existing database using Entity Framework 4.3 Code First approach?

查看:169
本文介绍了如何使用Entity Framework 4.3代码优先方法从现有数据库中清理生成POCO类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在遵循一个针对现有数据库的项目中的EF Code-First方法,根据需要我添加表。

I'm following the EF Code-First approach in a project that works against an existing database, to which I'm adding tables as needed.

这个数据库有许多表需要为此生成POCO类,所以我想知道是否有一个直接的,干净的方法来生成简单的POCO类从数据库...我可以继续使用一般的Code-First范例?

This database has a number of tables for which I need to generate POCO classes for, and so I was wondering if there was a straight-forward, clean approach, to generating simple POCO classes from the database ... from which I can continue to work with using the general Code-First paradigm?

推荐答案

您可以使用实体框架电动工具

这篇关于如何使用Entity Framework 4.3代码优先方法从现有数据库中清理生成POCO类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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