Problems creating .edmx EF6 in Visual Studio 2013

I am trying to generate my edmx file for my database in Visual Studio 2013 against a server or mssql 2012 or 2008 database table. The edmx file is generated without problems and everything looks fine until I try to compile the project. Each individual object representing a database table produces messages with the following messages.

  • A Using the namespace directive can only be applied to namespaces; "System" is a type, not a namespace
  • The type name "Collections" does not exist in the type "Model.blah.System"

  • A type of type 'DateTime' does not exist in a type of 'Model.blah.System'

Use statements are correctly located inside the declared code namespace, like all other EF.edmx files I have seen in the past.

Error messages are consistent across all database objects. No matter what I do, how I create my edmx model, it is useless and unusable.

I am working with an update to Visual Studio 2013 2. I tried using EF5 and EF6 to no avail. I need help figuring out why for my life I can't properly generate my EF model.

+4
source share
2 answers

, , , System, System.

System , .

+8

, Systems, . EF , s , . , , .

+5

All Articles