Problems generating the dbml file with the designer

Unanswered Problems generating the dbml file with the designer

  • Sunday, January 27, 2008 10:52 AM
     
     

    Hello everyone,

     

    I have a problem with the generation of the .dbml file. What I'm doing : I have a web project created in vs 2008 beta 2, I add a Linq to Sql file and drag and drop the tables I need from the Server Explorer. After saving, the content of the .designer.cs file is :

     

    public partial class MyDataContext : System.Data.Linq.DataContext

    {

    private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();

    #region Extensibility Method Definitions

    partial void OnCreated();

    #endregion

    public MyuDataContext(string connection) :

    base(connection, mappingSource)

    {

    OnCreated();

    }

    public MyuDataContext(System.Data.IDbConnection connection) :

    base(connection, mappingSource)

    {

    OnCreated();

    }

    public MyuDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :

    base(connection, mappingSource)

    {

    OnCreated();

    }

    public MyuDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :

    base(connection, mappingSource)

    {

    OnCreated();

    }

    }

    }

     

     

    That's it !!! There are no classes generated that map my db tables what so ever.

     

    I'm thankfull for any help on this one

     

    Calin

All Replies

  • Monday, March 07, 2011 6:20 AM
     
     

    Dear Calin ,

    Drag the tables from server explorer...... to dbml.layout