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