21 instantiations of FacetDescription
System.Data.Entity (21)
System\Data\EntityModel\SchemaObjectModel\FacetDescriptionElement.cs (1)
155
_facetDescription = new
FacetDescription
(Name, FacetType, MinValue, MaxValue, DefaultValue, _isConstant, declaringTypeName);
System\Data\Metadata\Converter.cs (3)
67
ConcurrencyModeFacet = new
FacetDescription
(EdmProviderManifest.ConcurrencyModeFacetName,
72
StoreGeneratedPatternFacet = new
FacetDescription
(EdmProviderManifest.StoreGeneratedPatternFacetName,
77
CollationFacet = new
FacetDescription
(EdmProviderManifest.CollationFacetName,
System\Data\Metadata\Edm\MetadataItem_Static.cs (3)
291
_nullableFacetDescription = new
FacetDescription
(DbProviderManifest.NullableFacetName,
297
_defaultValueFacetDescription = new
FacetDescription
(DbProviderManifest.DefaultValueFacetName,
305
_collectionKindFacetDescription = new
FacetDescription
(XmlConstants.CollectionKind,
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (14)
355
list[0] = (new
FacetDescription
(DbProviderManifest.MaxLengthFacetName,
360
list[1] = (new
FacetDescription
(DbProviderManifest.UnicodeFacetName,
365
list[2] = (new
FacetDescription
(DbProviderManifest.FixedLengthFacetName,
378
list[0] = (new
FacetDescription
(DbProviderManifest.MaxLengthFacetName,
383
list[1] = (new
FacetDescription
(DbProviderManifest.FixedLengthFacetName,
395
list[0] = (new
FacetDescription
(DbProviderManifest.PrecisionFacetName,
405
list[0] = (new
FacetDescription
(DbProviderManifest.PrecisionFacetName,
414
list[0] = (new
FacetDescription
(DbProviderManifest.PrecisionFacetName,
424
list[0] = (new
FacetDescription
(DbProviderManifest.PrecisionFacetName,
429
list[1] = (new
FacetDescription
(DbProviderManifest.ScaleFacetName,
447
list[0] = (new
FacetDescription
(DbProviderManifest.SridFacetName,
452
list[1] = (new
FacetDescription
(DbProviderManifest.IsStrictFacetName,
470
list[0] = (new
FacetDescription
(DbProviderManifest.SridFacetName,
475
list[1] = (new
FacetDescription
(DbProviderManifest.IsStrictFacetName,
78 references to FacetDescription
System.Data.Entity (72)
System\Data\Common\DbProviderManifest.cs (1)
116
public abstract System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
> GetFacetDescriptions(EdmType edmType);
System\Data\Common\DbXmlEnabledProviderManifest.cs (4)
27
private Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
>> _facetDescriptions = new Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
>>();
77
public override System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
> GetFacetDescriptions(EdmType type)
125
System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
> descriptions;
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
2452
FacetDescription
facetDescription = Helper.GetFacet(type.ProviderManifest.GetFacetDescriptions(type), facetName);
System\Data\EntityModel\SchemaObjectModel\FacetDescriptionElement.cs (2)
26
FacetDescription
_facetDescription;
144
public
FacetDescription
FacetDescription
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (5)
229
public IEnumerable<
FacetDescription
> FacetDescriptions
282
FacetDescription
precisionFacetDescription = Helper.GetFacet(FacetDescriptions, EdmProviderManifest.PrecisionFacetName);
283
FacetDescription
scaleFacetDescription = Helper.GetFacet(FacetDescriptions, EdmProviderManifest.ScaleFacetName);
311
foreach (
FacetDescription
systemFacetDescription in baseType.FacetDescriptions)
313
FacetDescription
providerFacetDescription = Helper.GetFacet(FacetDescriptions, systemFacetDescription.FacetName);
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (5)
382
FacetDescription
precisionFacetDescription = Helper.GetFacet(primitiveType.FacetDescriptions,
401
FacetDescription
scaleFacetDescription = Helper.GetFacet(primitiveType.FacetDescriptions,
439
FacetDescription
precisionFacetDescription = Helper.GetFacet(primitiveType.FacetDescriptions,
481
FacetDescription
facetDescription = Helper.GetFacet(primitiveType.FacetDescriptions, EdmProviderManifest.MaxLengthFacetName);
524
FacetDescription
facetDescription = Helper.GetFacet(primitiveType.FacetDescriptions, EdmProviderManifest.SridFacetName);
System\Data\Metadata\CacheForPrimitiveTypes.cs (2)
87
FacetDescription
[] facetDescriptions = EdmProviderManifest.GetInitialFacetDescriptions(primitiveTypeKind);
151
private static Facet[] CreateInitialFacets(
FacetDescription
[] facetDescriptions)
System\Data\Metadata\Converter.cs (3)
86
internal static readonly
FacetDescription
ConcurrencyModeFacet;
87
internal static readonly
FacetDescription
StoreGeneratedPatternFacet;
88
internal static readonly
FacetDescription
CollationFacet;
System\Data\Metadata\Edm\EdmType.cs (1)
352
internal virtual IEnumerable<
FacetDescription
> GetAssociatedFacetDescriptions()
System\Data\Metadata\Edm\Facet.cs (5)
32
private Facet(
FacetDescription
facetDescription, object value)
48
internal static Facet Create(
FacetDescription
facetDescription, object value)
61
internal static Facet Create(
FacetDescription
facetDescription, object value, bool bypassKnownValues)
108
private readonly
FacetDescription
_facetDescription;
125
public
FacetDescription
Description
System\Data\Metadata\Edm\FacetDescription.cs (3)
79
Debug.Assert(
FacetDescription
.IsNumericType(facetType), "Min and Max Values can only be specified for numeric facets");
292
if (
FacetDescription
.IsNumericType(facetType))
317
else if (
FacetDescription
.IsNumericType(_facetType))
System\Data\Metadata\Edm\FacetValues.cs (1)
55
internal bool TryGetFacet(
FacetDescription
description, out Facet facet)
System\Data\Metadata\Edm\MetadataItem_Static.cs (10)
289
FacetDescription
[] generalFacetDescriptions = new
FacetDescription
[2];
432
private static readonly System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
> _generalFacetDescriptions;
433
private static
FacetDescription
_nullableFacetDescription;
434
private static
FacetDescription
_defaultValueFacetDescription;
435
private static
FacetDescription
_collectionKindFacetDescription;
440
internal static
FacetDescription
DefaultValueFacetDescription
445
internal static
FacetDescription
CollectionKindFacetDescription
451
internal static
FacetDescription
NullableFacetDescription
477
public static System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
> GetGeneralFacetDescriptions()
System\Data\Metadata\Edm\PrimitiveType.cs (2)
134
public System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
> FacetDescriptions
207
internal override IEnumerable<
FacetDescription
> GetAssociatedFacetDescriptions()
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
183
public override System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
> GetFacetDescriptions(EdmType type)
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (17)
28
private Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
>> _facetDescriptions;
88
public override System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
> GetFacetDescriptions(EdmType type)
95
System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
> collection = null;
241
Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
>> facetDescriptions = new Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
>>();
244
FacetDescription
[] list = EdmProviderManifest.GetInitialFacetDescriptions(PrimitiveTypeKind.String);
340
Interlocked.CompareExchange<Dictionary<PrimitiveType, System.Collections.ObjectModel.ReadOnlyCollection<
FacetDescription
>>>(ref _facetDescriptions,
345
internal static
FacetDescription
[] GetInitialFacetDescriptions(PrimitiveTypeKind primitiveTypeKind)
347
FacetDescription
[] list;
353
list = new
FacetDescription
[3];
376
list = new
FacetDescription
[2];
393
list = new
FacetDescription
[1];
403
list = new
FacetDescription
[1];
413
list = new
FacetDescription
[1];
422
list = new
FacetDescription
[2];
445
list = new
FacetDescription
[2];
468
list = new
FacetDescription
[2];
System\Data\Metadata\Edm\TypeUsage.cs (3)
482
foreach (
FacetDescription
facetDescription in _edmType.GetAssociatedFacetDescriptions())
536
Func<T,
FacetDescription
> getDescription,
543
FacetDescription
description = getDescription(thing);
System\Data\Metadata\Helper.cs (3)
90
internal static
FacetDescription
GetFacet(IEnumerable<
FacetDescription
> facetCollection, string facetName)
92
foreach (
FacetDescription
facetDescription in facetCollection)
System\Data\Metadata\ObjectHelper.cs (3)
35
internal static readonly ReadOnlyCollection<
FacetDescription
> EmptyFacetDescriptionEnumerable = new ReadOnlyCollection<
FacetDescription
>(new
FacetDescription
[0]);
System.Data.Entity.Design (6)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (6)
451
IEnumerable<
FacetDescription
> providerDescriptions = GetAssociatedFacetDescriptions(type);
455
FacetDescription
providerFacetDescription = null;
462
foreach (
FacetDescription
description in providerDescriptions)
526
private bool SkipFacet(Facet facet,
FacetDescription
providerFacetDescription)
578
private IEnumerable<
FacetDescription
> GetAssociatedFacetDescriptions(EdmType type)
582
return (IEnumerable<
FacetDescription
>)mi.Invoke(type, new object[0]);