예제 #1
0
 public void ValidationShouldFailIfATypeCastIsFollowedByANonExistentProperty()
 {
     this.ValidateBindingWithExpectedErrors(
         @"<NavigationPropertyBinding Path=""Test.DerivedEntityType/NonExistent"" Target=""EntitySet"" />",
         EdmErrorCode.BadUnresolvedNavigationPropertyPath,
         ErrorStrings.Bad_UnresolvedNavigationPropertyPath("Test.DerivedEntityType/NonExistent", "Test.EntityType"));
 }
예제 #2
0
 public void ValidationShouldFailIfADerivedPropertyIsUsedWithoutATypeCast()
 {
     this.ValidateBindingWithExpectedErrors(
         @"<NavigationPropertyBinding Path=""DerivedNavigation"" Target=""EntitySet"" />",
         EdmErrorCode.BadUnresolvedNavigationPropertyPath,
         ErrorStrings.Bad_UnresolvedNavigationPropertyPath("DerivedNavigation", "Test.EntityType"));
 }
예제 #3
0
 public void ValidationShouldFailIfNavigationParterIsSpecifiedButCannotBeFound()
 {
     this.ValidateNavigationWithExpectedErrors(@"<NavigationProperty Name=""Navigation"" Type=""Test.EntityType"" Partner=""Nonexistent"" />",
                                               EdmErrorCode.BadUnresolvedNavigationPropertyPath,
                                               ErrorStrings.Bad_UnresolvedNavigationPropertyPath("Nonexistent", "Test.EntityType"));
 }