从数据库生成DataContext(实体框架)

发布于 2024-12-22 22:35:49 字数 185 浏览 2 评论 0原文

我曾经使用过一次实体框架的可下载附加组件,从互联网或 Nu-Get 生成带有 DataContext 的 DAL 和所有信息,方法是右键单击项目并选择“从数据库生成..”,它会创建一个填充的 DataContext包含所需的所有信息,包括表示数据的类。

由于某种原因我找不到它。有人知道我的意思并可以给我一个链接吗?

谢谢。

I've used once an downloadable add-on for entity framework, from the internet or Nu-Get to generate DAL with DataContext and all information by right clicking on the project and selecting "Generate.. From Database" and it creates a DataContext filled with all the information needed, including classes representing the data.

for some reason I cannt find it. does someone know what i mean and can give me a link for it?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三生一梦 2024-12-29 22:35:49

它是 Visual Studio 扩展而不是 NuGet 包。在 VS 中,转到“工具”->“ Extension Manager 并在在线图库中搜索 Context 或 POCO。

It's a Visual Studio Extension not a NuGet package. In VS go to Tools -> Extension Manager and search for Context or POCO on the online Gallery.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文