76 references to Value
System.Data.Entity (63)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
185facetInfo.Add(facet.Name, facet.Value);
System\Data\Common\DbCommandDefinition.cs (2)
254if (type.Facets.TryGetValue(DbProviderManifest.MaxLengthFacetName, true, out maxLengthFacet) && maxLengthFacet.Value != null) 259parameter.Size = (int)maxLengthFacet.Value;
System\Data\Common\Utils\MetadataHelper.cs (5)
778concurrencyFacet.Value != null) 780ConcurrencyMode concurrencyMode = (ConcurrencyMode)concurrencyFacet.Value; 791storeGeneratedFacet.Value != null) 793StoreGeneratedPattern pattern = (StoreGeneratedPattern)storeGeneratedFacet.Value; 901return (T)type.Facets[facetName].Value;
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (11)
379if (facets.TryGetValue(EdmProviderManifest.PrecisionFacetName, out precisionFacet) && precisionFacet.Value != null) 381precision = (byte)precisionFacet.Value; 398if (facets.TryGetValue(EdmProviderManifest.ScaleFacetName, out scaleFacet) && scaleFacet.Value != null) 400byte scale = (byte)scaleFacet.Value; 436if (facets.TryGetValue(EdmProviderManifest.PrecisionFacetName, out precisionFacet) && precisionFacet.Value != null) 438precision = (byte)precisionFacet.Value; 471if (!facets.TryGetValue(EdmProviderManifest.MaxLengthFacetName, out maxLenFacet) || maxLenFacet.Value == null) 480int length = (int)maxLenFacet.Value; 506&& (!facets.TryGetValue(EdmProviderManifest.IsStrictFacetName, out isStrictFacet) || (bool)isStrictFacet.Value != false)) 514if (!facets.TryGetValue(EdmProviderManifest.SridFacetName, out sridFacet) || sridFacet.Value == null) 523int srid = (int)sridFacet.Value;
System\Data\Mapping\MetadataMappingHasherVisitor.cs (1)
623this.AddObjectContentToHashBuilder(facet.Value);
System\Data\Mapping\StorageMappingItemLoader.cs (2)
3690facetDisplay.AppendFormat("{0}={1},", facets[i].Name, facets[i].Value ?? string.Empty); 3693facetDisplay.AppendFormat("{0}={1}]", facets[numFacets - 1].Name, facets[numFacets-1].Value ?? string.Empty);
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (1)
143return facet.Value;
System\Data\Metadata\CacheForPrimitiveTypes.cs (1)
106facet.Value != null &&
System\Data\Metadata\Converter.cs (1)
1276newFacets[targetFacet.Name] = Facet.Create(targetFacet.Description, sourceFacet.Value);
System\Data\Metadata\Edm\EdmMember.cs (2)
129return ((StoreGeneratedPattern)item.Value) == StoreGeneratedPattern.Computed; 145return ((StoreGeneratedPattern)item.Value) == StoreGeneratedPattern.Identity;
System\Data\Metadata\Edm\EdmProperty.cs (2)
109return (bool)TypeUsage.Facets[DbProviderManifest.NullableFacetName].Value; 121return TypeUsage.Facets[DbProviderManifest.DefaultValueFacetName].Value;
System\Data\Metadata\Edm\Facet.cs (1)
188return object.ReferenceEquals(Value, EdmConstants.UnboundedValue);
System\Data\Metadata\Edm\TypeUsage.cs (3)
583builder.Append(facet.Value ?? String.Empty); 630if (!Object.Equals(thisFacet.Value, otherFacet.Value))
System\Data\Metadata\Helper.cs (2)
350return object.ReferenceEquals(facet.Value, EdmConstants.UnboundedValue); 355return object.ReferenceEquals(facet.Value, EdmConstants.VariableValue);
System\Data\Metadata\TypeHelpers.cs (6)
239if (type.Facets.TryGetValue(facetName, false, out boolFacet) && boolFacet.Value != null) 241boolValue = (bool)boolFacet.Value; 252if (type.Facets.TryGetValue(facetName, false, out byteFacet) && byteFacet.Value != null && !Helper.IsUnboundedFacetValue(byteFacet)) 254byteValue = (byte)byteFacet.Value; 265if (type.Facets.TryGetValue(facetName, false, out intFacet) && intFacet.Value != null && !Helper.IsUnboundedFacetValue(intFacet) && !Helper.IsVariableFacetValue(intFacet)) 267intValue = (int)intFacet.Value;
System\Data\Metadata\TypeSemantics.cs (1)
627return (bool)nullableFacet.Value;
System\Data\Objects\FieldDescriptor.cs (1)
82((bool)nullable.Value))
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (2)
149string collation = collationFacet.Value as string; 441false, out scaleFacet) && Convert.ToInt32(scaleFacet.Value, CultureInfo.InvariantCulture) == 0);
System\Data\SqlClient\SqlProviderManifest.cs (12)
591bool isFixedLength = null != facets[DbProviderManifest.FixedLengthFacetName].Value && (bool)facets[DbProviderManifest.FixedLengthFacetName].Value; 593bool isMaxLength = Helper.IsUnboundedFacetValue(f) || null == f.Value || (int)f.Value > binaryMaxSize; 594int maxLength = !isMaxLength ? (int)f.Value : Int32.MinValue; 627bool isUnicode = null == facets[DbProviderManifest.UnicodeFacetName].Value || (bool)facets[DbProviderManifest.UnicodeFacetName].Value; 628bool isFixedLength = null != facets[DbProviderManifest.FixedLengthFacetName].Value && (bool)facets[DbProviderManifest.FixedLengthFacetName].Value; 632bool isMaxLength = Helper.IsUnboundedFacetValue(f) || null == f.Value || (int)f.Value > (isUnicode ? nvarcharMaxSize : varcharMaxSize); 633int maxLength = !isMaxLength ? (int)f.Value : Int32.MinValue;
System\Data\SqlClient\SqlProviderServices.cs (2)
541null != maxLengthFacet.Value) { 546return (int?)maxLengthFacet.Value;
System\Data\SqlClient\SqlProviderUtilities.cs (4)
353storeGenFacet.Value != null && 354StoreGeneratedPattern.Computed == (StoreGeneratedPattern)storeGenFacet.Value) 403storeGenFacet.Value != null) 405StoreGeneratedPattern storeGenPattern = (StoreGeneratedPattern)storeGenFacet.Value;
System.Data.Entity.Design (5)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (3)
498_writer.WriteAttributeString(TranslateFacetNameToAttributeName(facet.Name), GetAttributeValueString(facet.Value)); 545if (facet.Value == null) 554facet.Value.Equals(providerFacetDescription.DefaultValue))
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (1)
828storeTypeUsage.Facets.GetValue(DesignXmlConstants.StoreGeneratedPattern, false).Value));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
622return (CollectionKind)collectionFacet.Value;
System.Data.Services (2)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (2)
1545if (facet.Value != null) 1547WriteFacetValue(xmlWriter, facet.Name, facet.Value);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
547return (CollectionKind)collectionFacet.Value;
System.Web.DynamicData (4)
DynamicData\ModelProviders\EFColumnProvider.cs (4)
69else if (facet.Value != null && facet.Value is int) { 70MaxLength = (int)facet.Value; 74Nullable = (bool)facet.Value;
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
719if ((bool)facet.Value)