22 references to Key
System.Data.Services (22)
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\ObjectContextServiceProvider.cs (2)
750
if (!property.IsOfKind(ResourcePropertyKind.
Key
))
1411
kind = ResourcePropertyKind.
Key
| ResourcePropertyKind.Primitive;
System\Data\Services\Providers\ReflectionServiceProvider.cs (2)
666
kind = ResourcePropertyKind.
Key
| ResourcePropertyKind.Primitive;
671
kind = ResourcePropertyKind.
Key
| ResourcePropertyKind.Primitive;
System\Data\Services\Providers\ResourceProperty.cs (2)
251
kind != (ResourcePropertyKind.Primitive | ResourcePropertyKind.
Key
) &&
291
if (IsOfKind(kind, ResourcePropertyKind.
Key
) && Nullable.GetUnderlyingType(propertyResourceType.InstanceType) != null)
System\Data\Services\Providers\ResourceType.cs (6)
321
List<ResourceProperty> key = rootType.Properties.Where(p => p.IsOfKind(ResourcePropertyKind.
Key
)).ToList();
852
if (!deserializer.IsUpdateOperation || clientProp == null || !clientProp.IsOfKind(ResourcePropertyKind.
Key
))
871
Debug.Assert(key[0].IsOfKind(ResourcePropertyKind.
Key
), "must be key property");
874
property.Kind = property.Kind ^ ResourcePropertyKind.
Key
;
1058
if (property.IsOfKind(ResourcePropertyKind.
Key
))
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 (1)
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 (1)
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");