如何在LINQ DBML文件中动态连接我的数据库表 [英] How to Connect My databse tables dynamically in LINQ DBML FIle

查看:89
本文介绍了如何在LINQ DBML文件中动态连接我的数据库表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在DBML中有已经连接到数据库的表.以后我需要在表中添加更多字段.在数据库中修改表后,我需要在DBML中重新创建与数据库的连接.有没有办法以数据库动态方式连接DBML文件?

I have tables in DBML which already connected to database . Later i need to add some more fields in table . After i modify the table in databse i need recreate the connection to database in DBML. Is there any way to connect DBML file with database dynamic manner ?

推荐答案

不幸的是,似乎没有这种方法可以用ef来实现.这样做,对于许多类似的任务将非常方便.请查看下面的链接.

http://www.huagati.com/dbmltools/ [
Unfortunately it seems there is no such way to do it with ef.There are third party addons to do that and it will be quite handy for many similar tasks.check below link.

http://www.huagati.com/dbmltools/[^]

hope that helps you. thanks.


这篇关于如何在LINQ DBML文件中动态连接我的数据库表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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