Data Access has been discontinued. Please refer to this page for more information.

How to: Convert an Empty L2S Model

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.

Converting of empty L2S models is possible with the Telerik Data Access LINQ to SQL Conversion Wizard. However, there are several prerequisites that should be pointed out.

Once you have added a new empty L2S model to your project, you should save the L2S model before using the wizard. This is because the XML declaration of the model will not be updated before saving the model. If you open the empty dbml file in a XML editor, it should look like the code snippet below:

<?xml version="1.0" encoding="utf-8"?>
<Database Class="EmptyDataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007" />

Invalid dbml files won’t be converted. If your dbml file is invalid and contains invalid data it will not be processed by the wizard.

For a complete walkthrough illustrating how to use the Telerik Data Access LINQ to SQL Conversion Wizard, check out the How to: Convert from L2S Model to Telerik Data Access Domain Model topic.