dbml文件 - 创建数据库 [英] dbml file - create database

查看:177
本文介绍了dbml文件 - 创建数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用 BA.dbml 文件(Linq to Sql)创建数据库。我知道我必须创建 DataContext 并创建数据库。但我不知道如何。我必须在 BA.cs 文件中创建 DataContext

I am trying to create a database using BA.dbml file (Linq to Sql). I know I have to create DataContext and create the database. But I don't know how to it. Do I have to create DataContext in the BA.cs file.

这可能是多余的,对不起。

It might be redundant post, I am sorry for that.

推荐答案

查看这些博客文章,显示如何创建dbml文件,然后从该dbml文件创建数据库。

See these blog posts showing how to create dbml file and then create database from that dbml file.

http://weblogs.asp.net/ashicmahtab/archive/2008/11/21/linq-to-sql-dbml-more-than-just-for-访问a-db.aspx

http://msdn.microsoft.com/en-us/library/bb399420.aspx

这篇关于dbml文件 - 创建数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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