实体表连接与表视图 [英] Entity Table Joins vs Table Views

查看:60
本文介绍了实体表连接与表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2015和Entity Framework 6中使用VB.NET

I am using VB.NET with Visual Studio 2015 and Entity Framework 6

我正在开发一个Windows窗体应用程序并尝试创建一个主详细信息表单。我的第一种方法/当前方法是基于SQL Server 2014表格视图,但想知道是否有更好的方法? 

I am working on a windows forms application and trying to create a Master Detail form. My first approach/current approach is based on SQL Server 2014 Table Views, but wondering if there is a better approach? 




推荐答案

嗨kingelk,

Hi kingelk,

>>但想知道是否有更好的方法?  ;

如果使用表视图,则只能查询数据库中的数据,而无法通过表视图更改数据。

If you use Table Views, you could only query the data from database, which you could not change the data via Table Views.

此外,关于使用实体框架创建主窗体Windows窗体,请参阅以下视频

In addition about Creating Master-Details Windows Forms with the Entity Framework, please refer to the following video

https://www.youtube.com/watch?v=9pmct6OmX_8 功能;    

https://www.youtube.com/watch?v=9pmct6OmX_8     

祝你好运,

Cole Wu


这篇关于实体表连接与表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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