I am a newbie to the Entity Framework. I am trying to generate a model from my database and I get the following errors:
‘_Content’ is already declared as ‘Private _Content As Integer’ in this class. ‘OnContentChanging’ cannot be declared ‘Partial’ because only one method ‘OnContentChanging’ can be marked ‘Partial’. ‘OnContentChanged’ cannot be declared ‘Partial’ because only one method ‘OnContentChanged’ can be marked ‘Partial’.
Does anyone know what could be the cause of this?
It sounds like it is duplicating the properties… have you perhaps left an abandoned model in the project somewhere? Alternatively, do you have two tables that are so similar that the escaping rules might be making them the same?