31 references to IsOfKind
System.Data.Services (31)
System\Data\Services\DataService.cs (2)
1122
else if (description.Property != null && description.Property.
IsOfKind
(ResourcePropertyKind.Key))
1207
if (description.Property != null && description.Property.
IsOfKind
(ResourcePropertyKind.Key))
System\Data\Services\Providers\EntityPropertyMappingInfo.cs (1)
203
if (!resourceProperty.
IsOfKind
(currentSegment == srcPathSegments.Length - 1 ? ResourcePropertyKind.Primitive : ResourcePropertyKind.ComplexType))
System\Data\Services\Providers\ObjectContextServiceProvider.cs (5)
750
if (!property.
IsOfKind
(ResourcePropertyKind.Key))
2126
if (resourceProperty.
IsOfKind
(ResourcePropertyKind.ComplexType) && propertyInformation.PathGiven)
2158
if (resourceProperty.
IsOfKind
(ResourcePropertyKind.ComplexType))
2175
if (resourceProperty.
IsOfKind
(ResourcePropertyKind.ComplexType))
2259
if (subProperty.
IsOfKind
(ResourcePropertyKind.ComplexType))
System\Data\Services\Providers\ResourceType.cs (9)
321
List<ResourceProperty> key = rootType.Properties.Where(p => p.
IsOfKind
(ResourcePropertyKind.Key)).ToList();
351
ReadOnlyCollection<ResourceProperty> etag = new ReadOnlyCollection<ResourceProperty>(this.Properties.Where(p => p.
IsOfKind
(ResourcePropertyKind.ETag)).ToList());
852
if (!deserializer.IsUpdateOperation || clientProp == null || !clientProp.
IsOfKind
(ResourcePropertyKind.Key))
871
Debug.Assert(key[0].
IsOfKind
(ResourcePropertyKind.Key), "must be key property");
1058
if (property.
IsOfKind
(ResourcePropertyKind.Key))
1071
Debug.Assert(!property.
IsOfKind
(ResourcePropertyKind.ETag), "This check must have been done in ResourceProperty.ValidatePropertyParameters method");
1072
Debug.Assert(property.
IsOfKind
(ResourcePropertyKind.Primitive), "This check must have been done in ResourceProperty.ValidatePropertyParameters method");
1075
if (property.
IsOfKind
(ResourcePropertyKind.ETag))
1226
if (this.propertiesDeclaredOnThisType.Where(p => p.
IsOfKind
(ResourcePropertyKind.Key)).FirstOrDefault() == null)
System\Data\Services\RequestQueryProcessor.cs (2)
454
if (!keyProp.
IsOfKind
(ResourcePropertyKind.Key))
1062
if (!keyProp.
IsOfKind
(ResourcePropertyKind.Key))
System\Data\Services\RequestUriProcessor.cs (2)
893
Debug.Assert(segment.ProjectedProperty.
IsOfKind
(ResourcePropertyKind.Primitive), "must be primitive type property");
1224
Debug.Assert(keyProperty.
IsOfKind
(ResourcePropertyKind.Key), "keyProperty.IsOfKind(ResourcePropertyKind.Key)");
System\Data\Services\Serializers\JsonDeserializer.cs (1)
568
if (!this.Update || !resourceProperty.
IsOfKind
(ResourcePropertyKind.Key))
System\Data\Services\Serializers\JsonSerializer.cs (1)
786
objectIsResource || !property.
IsOfKind
(ResourcePropertyKind.Key),
System\Data\Services\Serializers\MetadataSerializer.cs (2)
559
Debug.Assert(resourceProperty.
IsOfKind
(ResourcePropertyKind.Primitive), "property must be of primitive type");
562
if (resourceProperty.
IsOfKind
(ResourcePropertyKind.Key) || (resourceProperty.Type.IsValueType && Nullable.GetUnderlyingType(resourceProperty.Type) == null))
System\Data\Services\Serializers\PlainXmlDeserializer.cs (1)
443
if (this.Update && property.
IsOfKind
(ResourcePropertyKind.Key))
System\Data\Services\Serializers\Serializer.cs (1)
745
Debug.Assert(property.
IsOfKind
(ResourcePropertyKind.Key), "must be key property");
System\Data\Services\Serializers\SyndicationSerializer.cs (4)
1045
navProperty.
IsOfKind
(ResourcePropertyKind.ResourceReference) ||
1046
navProperty.
IsOfKind
(ResourcePropertyKind.ResourceSetReference),
1050
string linkType = navProperty.
IsOfKind
(ResourcePropertyKind.ResourceReference) ? XmlConstants.AtomEntryElementName : XmlConstants.AtomFeedElementName;
1086
if (navProperty.
IsOfKind
(ResourcePropertyKind.ResourceSetReference))