59 references to Facets
System.Data.Entity (51)
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
188
Facet[] facets = new Facet[type.
Facets
.Count];
190
foreach (Facet f in type.
Facets
)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
183
foreach (Facet facet in type.
Facets
)
System\Data\Common\DbCommandDefinition.cs (1)
254
if (type.
Facets
.TryGetValue(DbProviderManifest.MaxLengthFacetName, true, out maxLengthFacet) && maxLengthFacet.Value != null)
System\Data\Common\Utils\MetadataHelper.cs (3)
777
if (typeUsage.
Facets
.TryGetValue(EdmProviderManifest.ConcurrencyModeFacetName, false, out concurrencyFacet) &&
790
if (member.TypeUsage.
Facets
.TryGetValue(EdmProviderManifest.StoreGeneratedPatternFacetName, false, out storeGeneratedFacet) &&
901
return (T)type.
Facets
[facetName].Value;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
186
foreach (var facet in typeUsage.
Facets
)
System\Data\Mapping\StorageMappingItemLoader.cs (2)
3678
ReadOnlyMetadataCollection<Facet> facets = typeUsage.
Facets
;
4449
TypeUsage.Create(Helper.GetUnderlyingEdmTypeForEnumType(typeUsage.EdmType), typeUsage.
Facets
) :
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (1)
141
if (LeafEdmMember.TypeUsage.
Facets
.TryGetValue(EdmProviderManifest.DefaultValueFacetName, false, out facet))
System\Data\Metadata\Converter.cs (4)
1266
Dictionary<string, Facet> newFacets = targetType.
Facets
.ToDictionary(f => f.Name);
1268
foreach (Facet sourceFacet in sourceType.
Facets
)
1303
Dictionary<string, Facet> facets = propertyTypeUsage.
Facets
.ToDictionary(f => f.Name);
1377
Facet maxLengthFacet = typeUsage.
Facets
[EdmProviderManifest.MaxLengthFacetName];
System\Data\Metadata\Edm\EdmMember.cs (2)
127
if (TypeUsage.
Facets
.TryGetValue(EdmProviderManifest.StoreGeneratedPatternFacetName, false, out item))
143
if (TypeUsage.
Facets
.TryGetValue(EdmProviderManifest.StoreGeneratedPatternFacetName, false, out item))
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\TypeUsage.cs (11)
93
return TypeUsage.Create(_edmType, OverrideFacetValues(
Facets
, facetValues));
422
result = TypeUsage.Create(edmRowType, this.
Facets
);
428
result = TypeUsage.Create(new CollectionType(newTypeUsage), this.
Facets
);
447
OverrideFacetValues(result.
Facets
,
501
if (this.
Facets
.Count == 0)
570
for (int j = 0; j < this.
Facets
.Count; j++)
572
Facet facet = this.
Facets
[j];
618
if (this.
Facets
.Count != other.
Facets
.Count) { return false; }
620
foreach (Facet thisFacet in this.
Facets
)
623
if (!other.
Facets
.TryGetValue(thisFacet.Name, false, out otherFacet))
System\Data\Metadata\EdmValidator.cs (1)
558
foreach (Facet facet in item.
Facets
)
System\Data\Metadata\MetadataWorkspace.cs (1)
1285
TypeUsage result = TypeUsage.Create(clrType, edmSpaceTypeUsage.
Facets
);
System\Data\Metadata\TypeHelpers.cs (5)
239
if (type.
Facets
.TryGetValue(facetName, false, out boolFacet) && boolFacet.Value != null)
252
if (type.
Facets
.TryGetValue(facetName, false, out byteFacet) && byteFacet.Value != null && !Helper.IsUnboundedFacetValue(byteFacet))
265
if (type.
Facets
.TryGetValue(facetName, false, out intFacet) && intFacet.Value != null && !Helper.IsUnboundedFacetValue(intFacet) && !Helper.IsVariableFacetValue(intFacet))
462
return TypeUsage.Create(Helper.GetUnderlyingEdmTypeForEnumType(enumTypeUsage.EdmType), enumTypeUsage.
Facets
);
474
return TypeUsage.Create(Helper.GetSpatialNormalizedPrimitiveType(spatialTypeUsage.EdmType), spatialTypeUsage.
Facets
);
System\Data\Metadata\TypeSemantics.cs (1)
625
if (type.
Facets
.TryGetValue(EdmProviderManifest.NullableFacetName, false, out nullableFacet))
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
1871
TypeUsage.Create(Helper.GetUnderlyingEdmTypeForEnumType(returnType.EdmType), returnType.
Facets
) :
1914
TypeUsage.Create(Helper.GetUnderlyingEdmTypeForEnumType(returnType.EdmType), returnType.
Facets
) :
System\Data\Objects\FieldDescriptor.cs (1)
81
typeUsage.
Facets
.TryGetValue(DbProviderManifest.NullableFacetName, false, out nullable) &&
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
1862
return m_command.CreateNode(m_command.CreateCastOp(md.TypeUsage.Create(underlyingType, op.Type.
Facets
)), n.Child0);
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (2)
147
if (column.TypeUsage.
Facets
.TryGetValue(DbProviderManifest.CollationFacetName, false, out collationFacet))
440
return (typeUsage.
Facets
.TryGetValue(DbProviderManifest.ScaleFacetName,
System\Data\SqlClient\SqlProviderManifest.cs (4)
524
ReadOnlyMetadataCollection<Facet> facets = edmType.
Facets
;
609
Debug.Assert(tu.
Facets
[DbProviderManifest.MaxLengthFacetName].Description.IsConstant, "varbinary(max) is not constant!");
651
Debug.Assert(tu.
Facets
[DbProviderManifest.MaxLengthFacetName].Description.IsConstant, "NVarchar(max) is not constant!");
680
Debug.Assert(tu.
Facets
[DbProviderManifest.MaxLengthFacetName].Description.IsConstant, "varchar(max) is not constant!");
System\Data\SqlClient\SqlProviderServices.cs (1)
540
if (type.
Facets
.TryGetValue(DbProviderManifest.MaxLengthFacetName, false, out maxLengthFacet) &&
System\Data\SqlClient\SqlProviderUtilities.cs (2)
352
column.TypeUsage.
Facets
.TryGetValue("StoreGeneratedPattern", false, out storeGenFacet) &&
402
if (!isTimestamp && column.TypeUsage.
Facets
.TryGetValue("StoreGeneratedPattern", false, out storeGenFacet) &&
System.Data.Entity.Design (4)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
453
foreach (Facet facet in typeUsage.
Facets
)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (2)
819
if (storeTypeUsage.
Facets
.Contains(DesignXmlConstants.StoreGeneratedPattern))
828
storeTypeUsage.
Facets
.GetValue(DesignXmlConstants.StoreGeneratedPattern, false).Value));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
620
if (usage.
Facets
.TryGetValue(EdmConstants.CollectionKind, false, out collectionFacet))
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1543
foreach (Facet facet in typeUsage.
Facets
)
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
545
if (usage.
Facets
.TryGetValue(EdmConstants.CollectionKind, false, out collectionFacet))
System.Web.DynamicData (1)
DynamicData\ModelProviders\EFColumnProvider.cs (1)
62
foreach (Facet facet in EdmMember.TypeUsage.
Facets
) {
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
717
if (member.TypeUsage.
Facets
.TryGetValue("Nullable", true, out facet))