简体   繁体   中英

MVC Visual Studio add .dbml file in Model Folder

I have a Models folder. How do I go about creating a .dbml file underneath so that I can add tables, stored procedures in it. I am using MVC c# with Visual Studio 2010 Professional.

  1. In Solution Explorer: Right click on the Models folder.
  2. Choose Add -> New Item
  3. In the dialog that comes up choose Visual C# -> Data -> LINQ to SQL Classes.

This will create a .dbml file in your Models folder.

  1. Right click on the Models folder in Solution Explorer.
  2. Select " Add... " -> " New Item... ".
  3. Select the "Data" option from the Left Hand Side and then click Linq to SQL Classes:

DBML

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM