32 references to ResourceProperty
System.Data.Services (32)
System\Data\Services\Providers\DataServiceProviderWrapper.cs (4)
573if (relatedEnd.ResourceProperty != null) 575relatedProperty = relatedType.TryResolvePropertyName(relatedEnd.ResourceProperty.Name); 587thisEnd.ResourceProperty != resourceProperty || 590relatedEnd.ResourceProperty != relatedProperty)
System\Data\Services\Providers\ResourceAssociationSet.cs (7)
56if (end1.ResourceProperty == null && end2.ResourceProperty == null) 61if (end1.ResourceType == end2.ResourceType && end1.ResourceProperty == end2.ResourceProperty) 131if ((end.ResourceProperty == null && resourceProperty == null) || 132(end.ResourceProperty != null && resourceProperty != null && end.ResourceProperty.Name == resourceProperty.Name))
System\Data\Services\Serializers\MetadataSerializer.cs (21)
618ResourceAssociationTypeEnd associationTypeEnd1 = associationSet.ResourceAssociationType.GetResourceAssociationTypeEnd(associationSet.End1.ResourceType, associationSet.End1.ResourceProperty); 619ResourceAssociationTypeEnd associationTypeEnd2 = associationSet.ResourceAssociationType.GetResourceAssociationTypeEnd(associationSet.End2.ResourceType, associationSet.End2.ResourceProperty); 841ResourceAssociationSetEnd end1 = associationSet.End1.ResourceProperty != null ? associationSet.End1 : associationSet.End2; 844ResourceAssociationSetEnd end2 = (end1 == associationSet.End1 ? (associationSet.End2.ResourceProperty != null ? associationSet.End2 : null) : null); 846string associationTypeName = end1.ResourceType.Name + '_' + end1.ResourceProperty.Name; 849associationTypeName = associationTypeName + '_' + end2.ResourceType.Name + '_' + end2.ResourceProperty.Name; 1031bool isBiDirectional = associationSet.End1.ResourceProperty != null && associationSet.End2.ResourceProperty != null; 1036if (associationSet.End1.ResourceProperty != null) 1050end1Name = GetAssociationTypeLookupName(associationSet.End1.ResourceType, associationSet.End1.ResourceProperty); 1051end2Name = GetAssociationTypeLookupName(associationSet.End2.ResourceType, associationSet.End2.ResourceProperty); 1058new ResourceAssociationTypeEnd(end1Name, associationSet.End1.ResourceType, associationSet.End1.ResourceProperty, associationSet.End2.ResourceProperty), 1059new ResourceAssociationTypeEnd(end2Name, associationSet.End2.ResourceType, associationSet.End2.ResourceProperty, associationSet.End1.ResourceProperty)); 1065string relatedEndLookupKey = GetAssociationTypeLookupName(relatedEnd.ResourceType, relatedEnd.ResourceProperty); 1102if (relatedEnd.ResourceProperty != null) 1104ResourceAssociationSet reverseAssociationSet = this.provider.GetResourceAssociationSet(this.provider.ValidateResourceSet(relatedEnd.ResourceSet), relatedEnd.ResourceType, relatedEnd.ResourceProperty); 1113if (relatedEnd.ResourceProperty != null) 1115reverseAssociationSetKey = relatedEnd.ResourceSet.Name + '_' + relatedEnd.ResourceProperty.ResourceType.FullName + '_' + relatedEnd.ResourceProperty.Name;