Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9312005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T01:31:22+00:00 2026-06-19T01:31:22+00:00

I have a wpf project 4.5 and I am using EF 5 to generate

  • 0

I have a wpf project 4.5 and I am using EF 5 to generate the model classes. I want to implement iNotifyPropertyChanged for the EF classes gererated. So I right clicked in my designer (visual studio 2012) and changed the code generation setting from “None” to “Default”

Once I did that I got hundreds of errors like the following:

Error 67 ‘Public Property “TableColumnName” As “ColumnType” has multiple
definitions with identical signatures.

[EDIT 1]

These errors are all being thrown in the DataModel.Designer.Vb file. They occur on any table column property or navigation property that have the same name as a column/navigation property in another table. I find it hard to believe that I can’t have columns in different tables with the same names, something else must be going on here.

[EDIT 2]

So I removed all my database objects from the designer, then changed the code generation strategy to default, then added one table (client) to the diagram. I am getting lots of errors for every property of the table (so this must not be because other tables have the same column names as I previously thought). I am getting the error I listed above on EVERY property(table column) as well as the following error for EVERY property:

Error variable ‘_ColumnName’ conflicts with a member implicitly
declared for property ‘ColumnName’ in class
‘client’. C:…\FTC_DAL.Designer.vb

This goes away when I return the code generation back to none. I am staring to think this is a bug in EF 5.

[EDIT 3]

STEPS TO REPRODUCE:

  1. Create new project in Visual Studio 2012, wpf application.
    It can be vb or c, i tested both
  2. Add a ADO.NET entity data model (edmx file)
  3. Add a table from a sql server (I am using express 2008 R2)
  4. Build the project and then click in the edmx designer on blank space. In properties window, change code generation strategy to default instead of none.
  5. Build project and the errors will appear.

I am using:

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

I am going to install sql server 2012 express to see if this makes any difference

Can someone help me figure out why these errors are happening.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T01:31:23+00:00Added an answer on June 19, 2026 at 1:31 am

    Having the Code Generation Strategy at “None” is correct, you should leave it like that.

    When you change it to “Default”, you get classes for all the entities in your model. However, you are already getting those same classes from the .tt templates. As a result, you’re getting all the class members twice.

    In order to change how the classes get generated, still leave Code Generation Strategy at “None”, as the default code generation is not customisable anyway. The Model.tt file can be freely modified to suit your needs, and it should not take too much effort to modify that to make your classes implement any interface you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a wpf project where I am using INotifyPropertyChanged on a property which
I have WPF application project and I'm using EF. I want something like this.
I'm doing WPF(MVVM) project using mvvm-light libraries, and have such problem: I want to
I have a WPF project using CM. I have a progress bar that I
I have a WPF VB.NET project in Visual Studio 2008. For some reason, Visual
I have a WPF project using MVVM. I have two views: ClientView and CommentView
I'm working on a solution where I have a WPF project that is using
I have a WPF project with a border using the following style. The plan
I am learning c# and wpf. I have the project running in Visual Studio
I have a WPF project and I have added support for localization using Satellite

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.