2 instantiations of ResourceProperty
System.Data.Services (2)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1439ResourceProperty resourceProperty = new ResourceProperty(propertyInfo.Name, kind, propertyType);
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
747ResourceProperty resourceProperty = new ResourceProperty(property.Name, kind, resourceType);
221 references to ResourceProperty
System.Data.Services (221)
System\Data\Services\Caching\MetadataCacheItem.cs (3)
69private Dictionary<string, List<ResourceProperty>> resourcePropertyCache; 94this.resourcePropertyCache = new Dictionary<string, List<ResourceProperty>>(EqualityComparer<string>.Default); 158internal Dictionary<string, List<ResourceProperty>> ResourcePropertyCache
System\Data\Services\DataService.cs (1)
1534ResourceProperty resProperty = openTypeParentResourceType.Properties.First(p => p.Name == currentSegment.Identifier);
System\Data\Services\Epm\EpmContentSerializer.cs (1)
164ResourceProperty property = currentType.TryResolvePropertyName(segment);
System\Data\Services\ExpandSegment.cs (3)
53private readonly ResourceProperty expandedProperty; 90ResourceProperty expandedProperty, 138public ResourceProperty ExpandedProperty
System\Data\Services\Internal\NeedSkipTokenVisitor.cs (5)
32private ResourceProperty property; 61private ResourceProperty Property 100internal static ICollection<ResourceProperty> CollectSkipTokenProperties(OrderingInfo orderingInfo, ResourceType rt) 105List<ResourceProperty> resourceProperties = new List<ResourceProperty>();
System\Data\Services\Internal\PropertyAccessVisitor.cs (3)
37ResourceProperty resourceProperty = null; 48propertyExpression != null && propertyExpression.Value is ResourceProperty, 50resourceProperty = propertyExpression.Value as ResourceProperty;
System\Data\Services\KeyInstance.cs (1)
145ResourceProperty property = type.KeyProperties[i];
System\Data\Services\Parsing\RequestQueryParser.cs (1)
2049ResourceProperty property = this.currentSegmentInfo.ResourceType == null ?
System\Data\Services\Providers\BaseServiceProvider.cs (2)
237public abstract ResourceAssociationSet GetResourceAssociationSet(ResourceSet resourceSet, ResourceType resourceType, ResourceProperty resourceProperty); 311public object GetPropertyValue(object target, ResourceProperty resourceProperty)
System\Data\Services\Providers\BasicExpandProvider.cs (19)
510private readonly ResourceProperty property; 514/// <param name="property">The <see cref="ResourceProperty"/> to project. For open properties this is null.</param> 515public ProjectedProperty(string name, ResourceProperty property) 531public ResourceProperty Property 639/// tree which have the same name. Only one of them can be an open property (without the <see cref="ResourceProperty"/>). 857/// <param name="property">The <see cref="ResourceProperty"/> to project.</param> 858internal void AddProjectedProperty(ResourceProperty property) 865/// <param name="property">The <see cref="ResourceProperty"/> to project, can be null for open-type properties.</param> 866internal void AddProjectedProperty(string propertyName, ResourceProperty property) 952foreach (ResourceProperty keyProperty in this.BaseResourceType.KeyProperties) 984foreach (ResourceProperty etagProperty in this.ExpandProvider.Provider.GetETagProperties(this.Node.ResourceSetWrapper.Name, resourceType)) 1000ResourceProperty property = resourceType.TryResolvePropertyName(epmSegment.PropertyName); 1017ResourceProperty property = resourceType.TryResolvePropertyName(projectedOpenPropertyName); 1077ResourceProperty property = child.Node.Property; 1171internal int GetProjectedPropertyIndex(ResourceProperty property) 1242/// <param name="property">The <see cref="ResourceProperty"/> to access.</param> 1248private static Expression AccessProperty(Expression source, ResourceType resourceType, ResourceProperty property, bool nullPropagationRequired) 1566ResourceProperty resourceProperty = resourceType.TryResolvePropertyName(projectedProperty.Name); 2084ResourceProperty property = operandExpandNode.BaseResourceType.TryResolvePropertyName(propertyName);
System\Data\Services\Providers\DataServiceProviderMethods.cs (4)
32new Type[] { typeof(object), typeof(ResourceProperty) }, 40new Type[] { typeof(object), typeof(ResourceProperty) }, 62public static object GetValue(object value, ResourceProperty property) 74public static IEnumerable<T> GetSequenceValue<T>(object value, ResourceProperty property)
System\Data\Services\Providers\DataServiceProviderWrapper.cs (12)
369private Dictionary<string, List<ResourceProperty>> ResourcePropertyCache 433public object GetPropertyValue(object target, ResourceProperty resourceProperty, ResourceType resourceType) 542public ResourceAssociationSet GetResourceAssociationSet(ResourceSetWrapper resourceSet, ResourceType resourceType, ResourceProperty resourceProperty) 572ResourceProperty relatedProperty = null; 700internal static ResourceType GetDeclaringTypeForProperty(ResourceType resourceType, ResourceProperty resourceProperty) 777internal ResourceSetWrapper GetContainer(ResourceSetWrapper sourceContainer, ResourceType sourceResourceType, ResourceProperty navigationProperty) 806internal IList<ResourceProperty> GetETagProperties(string containerName, ResourceType resourceType) 824internal IEnumerable<ResourceProperty> GetResourceProperties(ResourceSetWrapper resourceSet, ResourceType resourceType) 831List<ResourceProperty> properties; 834properties = new List<ResourceProperty>(); 835foreach (ResourceProperty property in resourceType.Properties) 1146foreach (ResourceProperty property in resourceType.PropertiesDeclaredOnThisType)
System\Data\Services\Providers\EntityPropertyMappingInfo.cs (1)
198ResourceProperty resourceProperty = resourceType != null ? resourceType.TryResolvePropertyName(propertyName) : null;
System\Data\Services\Providers\ExpandedProjectionNode.cs (3)
78/// <param name="property">The <see cref="ResourceProperty"/> for this property. Can only be null for the root node.</param> 88ResourceProperty property, 369foreach (ResourceProperty property in resourceType.Properties)
System\Data\Services\Providers\IDataServiceMetadataProvider.cs (1)
68ResourceAssociationSet GetResourceAssociationSet(ResourceSet resourceSet, ResourceType resourceType, ResourceProperty resourceProperty);
System\Data\Services\Providers\IDataServiceQueryProvider.cs (1)
59object GetPropertyValue(object target, ResourceProperty resourceProperty);
System\Data\Services\Providers\ObjectContextServiceProvider.cs (22)
105public override ResourceAssociationSet GetResourceAssociationSet(ResourceSet resourceSet, ResourceType resourceType, ResourceProperty resourceProperty) 155ResourceProperty targetResourceProperty = null; 429foreach (ResourceProperty property in resourceType.KeyProperties) 471ResourceProperty resourceProperty = resourceType.TryResolvePropertyName(propertyName); 497ResourceProperty resourceProperty = resourceType.TryResolvePropertyName(propertyName); 724internal IList<ResourceProperty> GetETagProperties(string containerName, ResourceType resourceType) 732List<ResourceProperty> etagProperties = new List<ResourceProperty>(); 744ResourceProperty property = resourceType.TryResolvePropertyName(member.Name); 788foreach (ResourceProperty property in type.PropertiesDeclaredOnThisType) 1163private static void SetMimeTypeForMappedMember(ResourceProperty resourceProperty, EdmMember csdlMember) 1439ResourceProperty resourceProperty = new ResourceProperty(propertyInfo.Name, kind, propertyType); 2100ResourceProperty redefinedProperty = this.GetResourcePropertyFromEpmPath( 2118ResourceProperty resourceProperty = baseResourceType.TryResolvePropertiesDeclaredOnThisTypeByName(member.Name); 2124ResourceProperty propertyToUse = resourceProperty; 2153ResourceProperty resourceProperty, 2208private ResourceProperty GetResourcePropertyFromEpmPath(ResourceType baseResourceType, String sourcePath) 2218ResourceProperty resourceProperty = null; 2247ResourceProperty complexProperty, 2254foreach (ResourceProperty subProperty in complexProperty.ResourceType.Properties) 2403ResourceProperty resourceProperty = resourceType.TryResolvePropertyName(propertyName); 2742foreach (ResourceProperty property in resourceType.PropertiesDeclaredOnThisType)
System\Data\Services\Providers\ProjectionNode.cs (6)
30/// <summary>The <see cref="ResourceProperty"/> for the property to be projected.</summary> 33private readonly ResourceProperty property; 39/// <param name="property">The <see cref="ResourceProperty"/> for the property to project. If an open property 41internal ProjectionNode(string propertyName, ResourceProperty property) 62/// <summary>The <see cref="ResourceProperty"/> for the property to be projected.</summary> 65public ResourceProperty Property
System\Data\Services\Providers\ReflectionServiceProvider.cs (2)
71public override ResourceAssociationSet GetResourceAssociationSet(ResourceSet resourceSet, ResourceType resourceType, ResourceProperty resourceProperty) 747ResourceProperty resourceProperty = new ResourceProperty(property.Name, kind, resourceType);
System\Data\Services\Providers\ResourceAssociationSet.cs (2)
122internal ResourceAssociationSetEnd GetResourceAssociationSetEnd(ResourceSetWrapper resourceSet, ResourceType resourceType, ResourceProperty resourceProperty) 149internal ResourceAssociationSetEnd GetRelatedResourceAssociationSetEnd(ResourceSetWrapper resourceSet, ResourceType resourceType, ResourceProperty resourceProperty)
System\Data\Services\Providers\ResourceAssociationSetEnd.cs (3)
37private readonly ResourceProperty resourceProperty; 49public ResourceAssociationSetEnd(ResourceSet resourceSet, ResourceType resourceType, ResourceProperty resourceProperty) 96public ResourceProperty ResourceProperty
System\Data\Services\Providers\ResourceAssociationType.cs (2)
82internal ResourceAssociationTypeEnd GetResourceAssociationTypeEnd(ResourceType resourceType, ResourceProperty resourceProperty) 103internal ResourceAssociationTypeEnd GetRelatedResourceAssociationSetEnd(ResourceType resourceType, ResourceProperty resourceProperty)
System\Data\Services\Providers\ResourceAssociationTypeEnd.cs (5)
29private readonly ResourceProperty resourceProperty; 32private readonly ResourceProperty fromProperty; 41internal ResourceAssociationTypeEnd(string name, ResourceType resourceType, ResourceProperty resourceProperty, ResourceProperty fromProperty) 65internal ResourceProperty ResourceProperty
System\Data\Services\Providers\ResourceProperty.cs (1)
225return ResourceProperty.IsOfKind(this.kind, checkKind);
System\Data\Services\Providers\ResourceType.cs (50)
36internal static readonly ReadOnlyCollection<ResourceProperty> EmptyProperties = new ReadOnlyCollection<ResourceProperty>(new ResourceProperty[0]); 85private IList<ResourceProperty> propertiesDeclaredOnThisType; 88private ReadOnlyCollection<ResourceProperty> allProperties; 91private ReadOnlyCollection<ResourceProperty> keyProperties; 94private ReadOnlyCollection<ResourceProperty> etagProperties; 97private Dictionary<ResourceProperty, PropertyInfo> propertyInfosDeclaredOnThisType = new Dictionary<ResourceProperty, PropertyInfo>(ReferenceEqualityComparer<ResourceProperty>.Instance); 255public ReadOnlyCollection<ResourceProperty> Properties 264public ReadOnlyCollection<ResourceProperty> PropertiesDeclaredOnThisType 268ReadOnlyCollection<ResourceProperty> readOnlyProperties = this.propertiesDeclaredOnThisType as ReadOnlyCollection<ResourceProperty>; 274readOnlyProperties = new ReadOnlyCollection<ResourceProperty>(this.propertiesDeclaredOnThisType ?? ResourceType.EmptyProperties); 282IList<ResourceProperty> propertyCollection = this.propertiesDeclaredOnThisType; 302public ReadOnlyCollection<ResourceProperty> KeyProperties 314ReadOnlyCollection<ResourceProperty> readOnlyKeyProperties; 321List<ResourceProperty> key = rootType.Properties.Where(p => p.IsOfKind(ResourcePropertyKind.Key)).ToList(); 323readOnlyKeyProperties = new ReadOnlyCollection<ResourceProperty>(key); 345public ReadOnlyCollection<ResourceProperty> ETagProperties 351ReadOnlyCollection<ResourceProperty> etag = new ReadOnlyCollection<ResourceProperty>(this.Properties.Where(p => p.IsOfKind(ResourcePropertyKind.ETag)).ToList()); 596public void AddProperty(ResourceProperty property) 679foreach (ResourceProperty p in this.propertiesDeclaredOnThisType) 778ResourceProperty clientProp = resourceType.TryResolvePropertyName(currentSegment); 867ReadOnlyCollection<ResourceProperty> key = this.KeyProperties; 873ResourceProperty property = key[0]; 880internal ResourceProperty TryResolvePropertyName(string propertyName) 889internal ResourceProperty TryResolvePropertiesDeclaredOnThisTypeByName(string propertyName) 922internal PropertyInfo GetPropertyInfo(ResourceProperty resourceProperty) 943internal void SetValue(object instance, object propertyValue, ResourceProperty resourceProperty) 975protected virtual IEnumerable<ResourceProperty> LoadPropertiesDeclaredOnThisType() 977return new ResourceProperty[0]; 990private static int ResourcePropertyComparison(ResourceProperty a, ResourceProperty b) 1013private ReadOnlyCollection<ResourceProperty> InitializeProperties() 1017ReadOnlyCollection<ResourceProperty> readOnlyAllProps; 1018List<ResourceProperty> allProps = new List<ResourceProperty>(); 1025readOnlyAllProps = new ReadOnlyCollection<ResourceProperty>(allProps); 1043private void AddPropertyInternal(ResourceProperty property) 1047this.propertiesDeclaredOnThisType = new List<ResourceProperty>(); 1050foreach (ResourceProperty resourceProperty in this.propertiesDeclaredOnThisType) 1097private PropertyInfo GetPropertyInfoDecaredOnThisType(ResourceProperty resourceProperty) 1104this.propertyInfosDeclaredOnThisType = new Dictionary<ResourceProperty, PropertyInfo>(ReferenceEqualityComparer<ResourceProperty>.Instance); 1188foreach (ResourceProperty p in this.LoadPropertiesDeclaredOnThisType()) 1216foreach (ResourceProperty rp in this.BaseType.Properties) 1233foreach (ResourceProperty p in this.propertiesDeclaredOnThisType)
System\Data\Services\RequestDescription.cs (2)
265internal ResourceProperty Property 307internal ICollection<ResourceProperty> SkipTokenProperties
System\Data\Services\RequestQueryProcessor.cs (6)
407ResourceProperty property = resourceType.TryResolvePropertyName(pathSegment); 451IEnumerable<ResourceProperty> properties = useMetadataKeyOrder ? resourceSet.ResourceType.Properties : resourceSet.ResourceType.KeyProperties; 452foreach (var keyProp in properties) 614ResourceProperty property = currentResourceType.TryResolvePropertyName(pathSegment); 1059IEnumerable<ResourceProperty> properties = useMetadataKeyOrder ? resourceSet.ResourceType.Properties : resourceSet.ResourceType.KeyProperties; 1060foreach (var keyProp in properties)
System\Data\Services\RequestUriProcessor.cs (6)
118ResourceProperty projectedProperty = lastSegment.ProjectedProperty; 1111private static IQueryable SelectElement(IQueryable query, ResourceProperty property) 1130private static IQueryable SelectMultiple(IQueryable query, ResourceProperty property) 1174private static IQueryable SelectLateBoundProperty(IQueryable query, ResourceProperty property) 1194private static IQueryable SelectLateBoundPropertyMultiple(IQueryable query, ResourceProperty property) 1223ResourceProperty keyProperty = resourceType.KeyProperties[i];
System\Data\Services\SegmentInfo.cs (2)
62private ResourceProperty projectedProperty; 160internal ResourceProperty ProjectedProperty
System\Data\Services\Serializers\Deserializer.cs (4)
201internal static object ConvertValues(object value, ResourceProperty property, ContentFormat contentFormat, DataServiceProviderWrapper provider) 525ResourceProperty propertyToUpdate = description.LastSegmentInfo.ProjectedProperty; 783protected static void SetPropertyValue(ResourceProperty resourceProperty, object declaringResource, object propertyValue, ContentFormat contentFormat, IDataService service) 848protected static SegmentInfo CreateSegment(ResourceProperty property, string propertyName, ResourceSetWrapper propertySet, bool singleResult)
System\Data\Services\Serializers\JsonDeserializer.cs (4)
528List<ResourceProperty> navProperties = new List<ResourceProperty>(); 541ResourceProperty resourceProperty = parentResourceType.TryResolvePropertyName(propertyName); 772private void HandleNavigationProperty(ResourceSetWrapper parentResourceSet, ResourceType parentResourceType, object resource, ResourceProperty resourceProperty, object propertyValue)
System\Data\Services\Serializers\JsonSerializer.cs (3)
671private void WriteObjectDeclaredProperty(IExpandedResult expanded, object customObject, ResourceProperty property, Uri parentUri) 783foreach (ResourceProperty property in this.Provider.GetResourceProperties(this.CurrentContainer, resourceType)) 805ResourceProperty property = resourceType.TryResolvePropertyName(propertyName);
System\Data\Services\Serializers\MetadataSerializer.cs (10)
359foreach (ResourceProperty property in entityType.KeyProperties) 480foreach (ResourceProperty resourceProperty in metadataManager.GetPropertiesDeclaredInThisType(type)) 557private static void WritePrimitivePropertyFacets(XmlWriter xmlWriter, ResourceProperty resourceProperty) 861internal static string GetAssociationTypeLookupName(ResourceType resourceType, ResourceProperty resourceProperty) 920internal IEnumerable<ResourceProperty> GetPropertiesDeclaredInThisType(ResourceType resourceType) 922foreach (ResourceProperty property in resourceType.PropertiesDeclaredOnThisType) 977foreach (ResourceProperty property in resourceType.PropertiesDeclaredOnThisType) 1018private ResourceAssociationType GetResourceAssociationType(ResourceAssociationSet associationSet, ResourceSetWrapper resourceSet, ResourceType resourceType, ResourceProperty navigationProperty) 1080private ResourceAssociationSet GetAndValidateResourceAssociationSet(ResourceSetWrapper resourceSet, ResourceType resourceType, ResourceProperty navigationProperty) 1146foreach (ResourceProperty navigationProperty in resourceType.PropertiesDeclaredOnThisType.Where(p => p.TypeKind == ResourceTypeKind.EntityType))
System\Data\Services\Serializers\PlainXmlDeserializer.cs (2)
432ResourceProperty property = resourceType.TryResolvePropertyName(propertyName); 501private object ReadPropertyWithType(XmlReader reader, string propertyName, ResourceProperty resourceProperty)
System\Data\Services\Serializers\PlainXmlSerializer.cs (1)
287foreach (ResourceProperty property in resourceType.Properties)
System\Data\Services\Serializers\Serializer.cs (7)
258protected static object GetExpandedProperty(DataServiceProviderWrapper provider, IExpandedResult expanded, object customObject, ResourceProperty property) 512protected bool PushSegmentForProperty(ResourceProperty property) 740IList<ResourceProperty> keyProperties = resourceType.KeyProperties; 744ResourceProperty property = keyProperties[i]; 1213private ICollection<ResourceProperty> properties; 1222public SkipTokenBuilderFromProperties(object element, DataServiceProviderWrapper provider, ICollection<ResourceProperty> properties) 1237foreach (ResourceProperty property in this.properties)
System\Data\Services\Serializers\SyndicationDeserializer.cs (3)
182private static string ValidateTypeParameterForNonOpenTypeProperties(string mediaType, ResourceProperty property) 461ResourceProperty property = resourceType.TryResolvePropertyName(propertyName); 579ResourceProperty property,
System\Data\Services\Serializers\SyndicationSerializer.cs (9)
198ResourceProperty property = this.RequestDescription.Property; 793foreach (ResourceProperty property in resourceType.Properties.Where(p => p.TypeKind == ResourceTypeKind.Primitive)) 826foreach (ResourceProperty property in resourceType.Properties.Where(p => p.TypeKind == ResourceTypeKind.Primitive)) 838foreach (ResourceProperty property in this.Provider.GetResourceProperties(this.CurrentContainer, resourceType)) 941ResourceProperty property = resourceType.TryResolvePropertyName(propertyName); 1042ResourceProperty navProperty = propertyInfo.Property; 1145private ResourceProperty resourceProperty; 1155public ResourcePropertyInfo(ResourceProperty resourceProperty, object value) 1163internal ResourceProperty Property
System\Data\Services\UpdatableWrapper.cs (3)
154IList<ResourceProperty> etagProperties = this.service.Provider.GetETagProperties(container.Name, resourceType); 329private static IEnumerable<KeyValuePair<string, object>> ParseETagValue(IList<ResourceProperty> etagProperties, string ifMatchHeaderValue) 385ResourceProperty etagProperty = etagProperties[i];
System\Data\Services\WebUtil.cs (5)
898internal static string GetETagValue(object resource, ResourceType resourceType, ICollection<ResourceProperty> etagProperties, IDataService service, bool getMethod) 905foreach (ResourceProperty property in etagProperties) 960ICollection<ResourceProperty> etagProperties = service.Provider.GetETagProperties(container.Name, resourceType); 1071ICollection<ResourceProperty> etagProperties = service.Provider.GetETagProperties(container.Name, resourceType); 1488internal static object GetPropertyValue(DataServiceProviderWrapper provider, object resource, ResourceType resourceType, ResourceProperty resourceProperty, String propertyName)