27 references to MaxLengthFacetName
System.Data.Entity (27)
System\Data\Common\DbCommandDefinition.cs (1)
254
if (type.Facets.TryGetValue(DbProviderManifest.
MaxLengthFacetName
, true, out maxLengthFacet) && maxLengthFacet.Value != null)
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (1)
134
IntegerFacetDescriptionElement facetDescription = new IntegerFacetDescriptionElement(this, DbProviderManifest.
MaxLengthFacetName
);
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (6)
331
else if (SchemaElement.CanHandleAttribute(reader, EdmProviderManifest.
MaxLengthFacetName
))
471
if (!facets.TryGetValue(EdmProviderManifest.
MaxLengthFacetName
, out maxLenFacet) || maxLenFacet.Value == null)
481
FacetDescription facetDescription = Helper.GetFacet(primitiveType.FacetDescriptions, EdmProviderManifest.
MaxLengthFacetName
);
536
Debug.Assert(reader.LocalName == EdmProviderManifest.
MaxLengthFacetName
);
541
_facetValues.Add(EdmProviderManifest.
MaxLengthFacetName
, EdmConstants.UnboundedValue);
551
_facetValues.Add(EdmProviderManifest.
MaxLengthFacetName
, size);
System\Data\Metadata\CacheForPrimitiveTypes.cs (4)
107
facet.Name == EdmProviderManifest.
MaxLengthFacetName
&&
125
maxLength = Helper.GetFacet(primitiveType.FacetDescriptions, EdmProviderManifest.
MaxLengthFacetName
).MaxValue.Value;
129
int newMaxLength = Helper.GetFacet(primitiveType.FacetDescriptions, EdmProviderManifest.
MaxLengthFacetName
).MaxValue.Value;
161
case DbProviderManifest.
MaxLengthFacetName
:
System\Data\Metadata\Converter.cs (2)
1377
Facet maxLengthFacet = typeUsage.Facets[EdmProviderManifest.
MaxLengthFacetName
];
1384
EdmProviderManifest.
MaxLengthFacetName
).MaxValue
System\Data\Metadata\Edm\FacetValues.cs (1)
65
else if (description.FacetName == DbProviderManifest.
MaxLengthFacetName
)
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (2)
355
list[0] = (new FacetDescription(DbProviderManifest.
MaxLengthFacetName
,
378
list[0] = (new FacetDescription(DbProviderManifest.
MaxLengthFacetName
,
System\Data\Metadata\Edm\TypeUsage.cs (1)
337
DbProviderManifest.
MaxLengthFacetName
,
System\Data\Metadata\TypeHelpers.cs (1)
314
return TypeHelpers.TryGetIntFacetValue(type, DbProviderManifest.
MaxLengthFacetName
, out maxLength);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
3837
if (!TypeHelpers.IsFacetValueConstant(storeTypeUsage, DbProviderManifest.
MaxLengthFacetName
))
3846
if (!TypeHelpers.IsFacetValueConstant(storeTypeUsage, DbProviderManifest.
MaxLengthFacetName
))
System\Data\SqlClient\SqlProviderManifest.cs (5)
592
Facet f = facets[DbProviderManifest.
MaxLengthFacetName
];
609
Debug.Assert(tu.Facets[DbProviderManifest.
MaxLengthFacetName
].Description.IsConstant, "varbinary(max) is not constant!");
629
Facet f = facets[DbProviderManifest.
MaxLengthFacetName
];
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) &&