Exemple #1
0
 public void ValidationShouldFailIfAContainerQualifiedNameIsUsedForTheTargetOfABinding()
 {
     this.ValidateBindingWithExpectedErrors(
         @"<NavigationPropertyBinding Path=""Navigation"" Target=""Container.EntitySet"" />",
         EdmErrorCode.BadUnresolvedEntitySet,
         ErrorStrings.Bad_UnresolvedEntitySet("Container.EntitySet"));
 }
Exemple #2
0
 public void ValidationShouldFailIfABindingToANonExistentSetIsFound()
 {
     this.ValidateBindingWithExpectedErrors(
         @"<NavigationPropertyBinding Path=""Navigation"" Target=""NonExistent"" />",
         EdmErrorCode.BadUnresolvedEntitySet,
         ErrorStrings.Bad_UnresolvedEntitySet("NonExistent"));
 }