22 references to Key
System.Data.Services (22)
System\Data\Services\DataService.cs (2)
1122else if (description.Property != null && description.Property.IsOfKind(ResourcePropertyKind.Key)) 1207if (description.Property != null && description.Property.IsOfKind(ResourcePropertyKind.Key))
System\Data\Services\Providers\ObjectContextServiceProvider.cs (2)
750if (!property.IsOfKind(ResourcePropertyKind.Key)) 1411kind = ResourcePropertyKind.Key | ResourcePropertyKind.Primitive;
System\Data\Services\Providers\ReflectionServiceProvider.cs (2)
666kind = ResourcePropertyKind.Key | ResourcePropertyKind.Primitive; 671kind = ResourcePropertyKind.Key | ResourcePropertyKind.Primitive;
System\Data\Services\Providers\ResourceProperty.cs (2)
251kind != (ResourcePropertyKind.Primitive | ResourcePropertyKind.Key) && 291if (IsOfKind(kind, ResourcePropertyKind.Key) && Nullable.GetUnderlyingType(propertyResourceType.InstanceType) != null)
System\Data\Services\Providers\ResourceType.cs (6)
321List<ResourceProperty> key = rootType.Properties.Where(p => p.IsOfKind(ResourcePropertyKind.Key)).ToList(); 852if (!deserializer.IsUpdateOperation || clientProp == null || !clientProp.IsOfKind(ResourcePropertyKind.Key)) 871Debug.Assert(key[0].IsOfKind(ResourcePropertyKind.Key), "must be key property"); 874property.Kind = property.Kind ^ ResourcePropertyKind.Key; 1058if (property.IsOfKind(ResourcePropertyKind.Key)) 1226if (this.propertiesDeclaredOnThisType.Where(p => p.IsOfKind(ResourcePropertyKind.Key)).FirstOrDefault() == null)
System\Data\Services\RequestQueryProcessor.cs (2)
454if (!keyProp.IsOfKind(ResourcePropertyKind.Key)) 1062if (!keyProp.IsOfKind(ResourcePropertyKind.Key))
System\Data\Services\RequestUriProcessor.cs (1)
1224Debug.Assert(keyProperty.IsOfKind(ResourcePropertyKind.Key), "keyProperty.IsOfKind(ResourcePropertyKind.Key)");
System\Data\Services\Serializers\JsonDeserializer.cs (1)
568if (!this.Update || !resourceProperty.IsOfKind(ResourcePropertyKind.Key))
System\Data\Services\Serializers\JsonSerializer.cs (1)
786objectIsResource || !property.IsOfKind(ResourcePropertyKind.Key),
System\Data\Services\Serializers\MetadataSerializer.cs (1)
562if (resourceProperty.IsOfKind(ResourcePropertyKind.Key) || (resourceProperty.Type.IsValueType && Nullable.GetUnderlyingType(resourceProperty.Type) == null))
System\Data\Services\Serializers\PlainXmlDeserializer.cs (1)
443if (this.Update && property.IsOfKind(ResourcePropertyKind.Key))
System\Data\Services\Serializers\Serializer.cs (1)
745Debug.Assert(property.IsOfKind(ResourcePropertyKind.Key), "must be key property");