When a new entity which exists in a Context is inserted into my database, the entity it refetched, which updates it's Primary Key value with a database-generated identity. My problem is the setting of this value is not causing a PropertyChanged event.
The application I am working on needs to be able to show this PK value to the user who will later use it for other things. The entity is shown in a grid which has, among other columns, an Id column, which is supposed to represent the primary key value of the entity in the grid's row. When I commit changes to the database, this Id column is not refreshed because the PropertyChanged event is not being raised.
I have a workaround at the moment by refreshing the binding on a save, but was wondering if this would be something that could possibly be worked into the entity base class code? Right now, it would only be helpful for me on in a refetch-on-save situation, but I could imagine that this would be an issue for any time even a normal fetch would happen for an entity existing in a Context.