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