6 references to ValidateStateForAdd
System.Data.Entity (6)
System\Data\Objects\DataClasses\EntityReference.cs (1)
241ValidateStateForAdd(this.WrappedOwner);
System\Data\Objects\DataClasses\RelatedEnd.cs (3)
1087ValidateStateForAdd(_wrappedOwner); 1088ValidateStateForAdd(wrappedEntity); 1176targetRelatedEnd.ValidateStateForAdd(targetRelatedEnd.WrappedOwner);
System\Data\Objects\ObjectStateManager.cs (2)
3420relatedEnd.ValidateStateForAdd(relatedEnd.WrappedOwner); 3421relatedEnd.ValidateStateForAdd(entityToAdd);