Microsoft Visual Studio 2012 添加实体数据模型

 1、创建一个web项目

Microsoft Visual Studio 2012 添加实体数据模型

2、添加ADO实体数据模型,如下图:

Microsoft Visual Studio 2012 添加实体数据模型

 3、选择 从数据库生成,然后下一步

Microsoft Visual Studio 2012 添加实体数据模型

4、新建连接,如下图:

Microsoft Visual Studio 2012 添加实体数据模型

 5、填写服务器名等,如下图:

 Microsoft Visual Studio 2012 添加实体数据模型

6、选择 是 ,然后下一步

Microsoft Visual Studio 2012 添加实体数据模型

7、勾选表,然后点击完成

Microsoft Visual Studio 2012 添加实体数据模型

8、点击确定

Microsoft Visual Studio 2012 添加实体数据模型

 9、会自动生成一下几个文件,即可直接调用里面的方法

 Microsoft Visual Studio 2012 添加实体数据模型

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-23
  • 2021-07-01
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
相关资源
相似解决方案