示例#1
0
 public void ValidationShouldFailIfNavigationTypeIsACollectionButElementTypeDoesNotExist()
 {
     this.ValidateNavigationWithExpectedErrors(@"<NavigationProperty Name=""Navigation"" Type=""Collection(Fake.Nonexistent)"" />",
                                               EdmErrorCode.BadUnresolvedEntityType,
                                               ErrorStrings.Bad_UnresolvedEntityType("Fake.Nonexistent"));
 }
示例#2
0
 public void ValidationShouldFailIfNavigationTypeIsPrimitiveCollectionType()
 {
     this.ValidateNavigationWithExpectedErrors(@"<NavigationProperty Name=""Navigation"" Type=""Collection(Edm.Int32)"" />",
                                               EdmErrorCode.BadUnresolvedEntityType,
                                               ErrorStrings.Bad_UnresolvedEntityType("Edm.Int32"));
 }