Problem with Entity Data Model's connectionstring - WPF RRS feed

  • Question

  • Hi

    In my WPF application i'm using an Entity Data Model to access data.
    Whem my application start i load the connectionstring from a file and i pass it to the EntityDataModel trough its constructor.

    SuiteStoreEntites issEntities = new SuiteStoreEntities(connectString);

    The connection string parameter is :  

    metadata=res://*/Data.SuiteStoreModel.csdl|res://*/Data.SuiteStoreModel.ssdl|res://*/Data.SuiteStoreModel.msl;provider=System.Data.SqlClient;provider connection string="Data Source=.\\SQLEXPRESS;Initial Catalog=SuiteStore;Integrated Security=True;MultipleActiveResultSets=True;Application Name=EntityFramework"

    And i get the following error in the EntityDataModel's designer: Argument Exception Occured Keyword 'data source' is not supported.

    public SuiteStoreEntities(string connectionString) : base(connectionString, "SuiteStoreEntities")
            { ... }

    • Moved by Sheldon _Xiao Wednesday, February 29, 2012 6:03 AM (From:Windows Presentation Foundation (WPF))
    Friday, February 24, 2012 3:53 PM