Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Problem with Entity Data Model's connectionstring - WPF

Problem with Entity Data Model's connectionstring - WPF

Scheduled Pinned Locked Moved WPF
helpcsharpwpfsecurity
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jadughar
    wrote on last edited by
    #1

    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")
        { ... }
    
    D 1 Reply Last reply
    0
    • J jadughar

      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")
          { ... }
      
      D Offline
      D Offline
      Dean Oliver
      wrote on last edited by
      #2

      in this statement.

      connection string=;"Data Source=.\\SQLEXPRESS

      remove the ";".

      connection string="Data Source=.\\SQLEXPRESS

      To build a correct connection string look at this link. connection string="Data Source=.\\SQLEXPRESS[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups