How to: Exclude the Original Dbml File from the Project

This article is relevant to entity models that utilize the deprecated Visual Studio integration of Telerik Data Access. The current documentation of the Data Access framework is available here.

The Telerik Data Access LINQ to SQL Conversion Wizard offers you an option to exclude automatically the original Dbml file from the project. For that purpose you have to check the Exclude 'FileName.dbml' From the Project option in the Specify Settings Dialog.

The default value for the Exclude 'FileName.dbml' From the Project option is True.

Note that if you check the Exclude 'FileName.dbml' From the Project option, the wizard will exclude (not delete) the original dbml file from the project. Additionally it will exclude all dependent code files and will delete the corresponding connection string from the configuration file.

If the conversion completes successfully the wizard creates a backup of the original state of your project. You could restore the original state of the project at any time. For more information, check out How to: Restore a Backup.

Besides the original dbml file, the wizard will exclude all dependent code files, too. In the sample project shown on the image below, the following files will be excluded:

  • L2SModelNorthwind.dbml
  • L2SModelNorthwind.dbml.layout
  • L2SModelNorthwind.designer.cs

Additionally the wizard will delete the original connection string from the configuration file and will add a new connection string that will be used by the generated Telerik Data Access Domain Model.