locked
Problems generating the dbml file with the designer

    Pergunta

  • 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

    domingo, 27 de janeiro de 2008 10:52

Todas as Respostas

  • Dear Calin ,

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

    segunda-feira, 7 de março de 2011 06:20