davioooh
davioooh

Reputation: 24706

Entity Framework generated types not inheriting from EntityObject

I'm new to Entity Framework (I'm using EF5), and I'm working on a test project to learn something about it.

Now I'm implementing some DAO classes to access DB following this tutorial (it's a bit old...)

I generated entity classes using Entity Data Model tool, but now I need all entities to inherit from EntityObject class.

Reading this I expected it to be so, but actually my classes inherit only from IObjectWithChangeTracker, INotifyPropertyChanged.

So I'm wondering if I'm doing something wrong...

Do I have to set some configuration in generation tool?

Upvotes: 2

Views: 2168

Answers (1)

Knaģis
Knaģis

Reputation: 21485

You need to use the correct template from http://msdn.microsoft.com/en-us/data/jj613116.aspx - one of those that are called "EntityObject Generator".

Upvotes: 5

Related Questions