views:

328

answers:

1

Hi there,

I know that i can enter/add new properties via code manually into partial classes but i wanted to use the model to add my new properties - reason being is that i can control a number of different attributes like NULL and things like that... and of course the code generations works great..

I added some foreign keys manually just on the model and they work great.

But everytime i add a SCALER PROPERTY i get an error in vs 2010 which says

Error 2538 Error 11009: Property 'testprop' is not mapped.

I can't believe i must map a custom property that i created to a column in the db.... is there no way to say "IGNORE" this property or treat as an unmapped property??

This way my code generation will create the required items BUT i don't get the error

Any help on this would be really helpful.

As i say i know i can edit things manually but wanted to update the model rather than edit a partial class....

I am sure i am missing something obvious?

+1  A: 

I believe that EF will on allow you to use the Model Designer to map to something that exists. If you want to create a property that doesnt exist, you'll have to use the partial class.

Ardman