I know that I can enter / add new properties using code manually in partial classes, but I wanted to use the model to add my new properties. The reason is that I can manage several different attributes, such as NULL, and such things ... and, of course, code generation works fine.
I added some foreign keys manually only to the model, and they work fine.
But every time I add SCALER PROPERTY, I get an error in version 2010, which says
Error 2538 Error 11009: the 'testprop' property is not displayed.
I can’t believe that I have to match the custom property that I created for the column in db .... is there no way to say “IGNORE” this property or consider it as an unmapped property?
Thus, the code generation will create the necessary elements, but I will not get the error.
Any help on this would be really helpful.
As I said, I know that I can edit things manually, but I wanted to update the model, and not edit the partial class ....
I'm sure I missed something obvious?
source
share