none
Framework Tools RRS feed

  • Question

  • I'm working with a Visual Studio Express 2013.

    On the one hand it seems to have Framework tools installed because I can select ADO.NET Entity Data Model as an item on the "Add New" list.

    The Entity Data Model Wizard works fine.

    But when I try to Import the System.Data.EntityClient namespace, it does not recognize that name.

    Also, if I try to write this line of code

    Dim Conn = New EntityConnection("name=CSE_DEPTEntities")

    it does not recognize "EntityConnection"

    What gives?

    Monday, March 31, 2014 9:37 PM

Answers

  • In EF6 the that type was copied into System.Data.Entity.Core.Objects , but and EF6 application would use the DbContext API, and so rarely need to use either of those types. 

    David


    David http://blogs.msdn.com/b/dbrowne/

    Tuesday, April 1, 2014 2:39 PM
  • it does not recognize "EntityConnection"

    What gives?

    If you are using EF 6, then you need to be using the below namespace.

    System.Data.Entity.Core.EntityClient

    Dim Conn = New EntityConnection("name=CSE_DEPTEntities")

    Then the above should work.

    Wednesday, April 2, 2014 3:40 AM

All replies

  • Hi,

    The forum supports .net framework Setup. Your issue isn't related to the forum.
    I have moved it to the related forum for better support.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, April 1, 2014 7:58 AM
  • In EF6 the that type was copied into System.Data.Entity.Core.Objects , but and EF6 application would use the DbContext API, and so rarely need to use either of those types. 

    David


    David http://blogs.msdn.com/b/dbrowne/

    Tuesday, April 1, 2014 2:39 PM
  • it does not recognize "EntityConnection"

    What gives?

    If you are using EF 6, then you need to be using the below namespace.

    System.Data.Entity.Core.EntityClient

    Dim Conn = New EntityConnection("name=CSE_DEPTEntities")

    Then the above should work.

    Wednesday, April 2, 2014 3:40 AM