Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Add Migration fails to acknowledge modifications when a new class is added to the model because it only looks for changes within its set of pre-existing classes. When a new class is added, it is not included in the set of classes that Add Migration is looking for changes in, hence it fails to acknowledge the modification.

However, when a new property is added to an existing class, Add Migration can identify the modification because it is already looking at that class and can recognize the new addition to its properties.