Errors appear after changing the code generation from none to the default value in entity structure 5

I have a wpf 4.5 project and I use EF 5 to create model classes. I want to implement iNotifyPropertyChanged for EF gererated classes. So I right-clicked in my designer (visual studio 2012) and changed the code generation setting from "No" to "Default"

As soon as I did this, I got a few hundred errors:

Error 67 'Public Property "TableColumnName" As "ColumnType" has several definitions with identical signatures.

[EDIT 1]

These errors are all thrown into the DataModel.Designer.Vb file. They are found in any column property or in navigation properties that have the same name as the column / navigation property in another table. I find it hard to believe that I cannot have columns in different tables with the same names, something else has to happen here.

[EDIT 2]

So, I deleted all database objects from the constructor, and then changed the code generation strategy to the default value, and then added one diagram (table). I get a lot of errors for each property of the table (so this should not be because other tables have the same column names as before). I get the error indicated above regarding the EVERY property (table column), as well as the following error for the EVERY property:

_ColumnName "ColumnName" "". C:...\FTC_DAL.Designer.vb

, . , EF 5.

[EDIT 3]

:

  • Visual Studio 2012, wpf.
    vb c,
  • ADO.NET( edmx)
  • SQL- ( express 2008 R2)
  • , edmx . none.
  • .

:

  • visual studio 2012 pro v.11.0.51106.01 1
  • .NET 4.5.50709
  • Windows 8 pro

SQL Server 2012 Express, ,

- , .

+5
2

"" , .

"Default", . .tt. .

, - "", . Model.tt , , , , .

+5

. , " " , "... "...

, WCF RIA DBContext ( .tt). ObjectContext. .

Entity Framework WCF RIA, ObjectContext. , :

  • ( "" , ).
  • "" " " "" " "
  • ".tt", , , , . , .

" ". , Entity Framework DbContext ObjectContext.

+7

All Articles