可以将实体框架与Windows窗体一起使用吗?一个例子? [英] Can Entity Framework be used with Windows Forms? An example?

查看:50
本文介绍了可以将实体框架与Windows窗体一起使用吗?一个例子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Windows Forms用于我的GUI和Entity Framework 6以进行数据访问。这可能吗?是 有什么例子吗?



谢谢!


Juan




Juan Dent

解决方案

是EF可以与Windows表单一起使用。但是,您应该阅读下面帖子中的上一篇文章。


https://social.msdn.microsoft.com/Forums/en-US/03f549b3-67d6-4ecc-ac5f- 960142a6d38f /负载form1中和 - 初始化组件上-用户控件外形上 - 开始 - 使用-EF?论坛= adodotnetentityframework


I want to use Windows Forms for my GUI and Entity Framework 6 for my data access. Is this possible? Are  there any examples?

Thanks!

Juan


Juan Dent

解决方案

Yes EF can be used with Windows forms. However, you should read my last post in the below thread.

https://social.msdn.microsoft.com/Forums/en-US/03f549b3-67d6-4ecc-ac5f-960142a6d38f/load-form1-and-initialize-components-on-usercontrol-form-on-start-using-ef?forum=adodotnetentityframework


这篇关于可以将实体框架与Windows窗体一起使用吗?一个例子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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