169 references to String
System.Data.Entity (163)
System\Data\Common\CommandTrees\AbstractExpressions.cs (1)
688return ExpressionBuilder.DbExpressionBuilder.CreatePrimitiveNullExpression(PrimitiveTypeKind.String);
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (2)
51private static readonly DbNullExpression _stringNull = Null(EdmProviderManifest.Instance.GetCanonicalModelTypeUsage(PrimitiveTypeKind.String)); 2692case PrimitiveTypeKind.String:
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (4)
381if (!TypeSemantics.IsPrimitiveType(key.ResultType, PrimitiveTypeKind.String)) 982RequireCompatibleType(argument, PrimitiveTypeKind.String, "argument"); 983RequireCompatibleType(pattern, PrimitiveTypeKind.String, "pattern"); 993RequireCompatibleType(escape, PrimitiveTypeKind.String, "escape");
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
212case PrimitiveTypeKind.String:
System\Data\Common\CommandTrees\OperatorExpressions.cs (3)
496Debug.Assert(TypeSemantics.IsPrimitiveType(input.ResultType, PrimitiveTypeKind.String), "DbLikeExpression argument must have a string result type"); 497Debug.Assert(TypeSemantics.IsPrimitiveType(pattern.ResultType, PrimitiveTypeKind.String), "DbLikeExpression pattern must have a string result type"); 498Debug.Assert(TypeSemantics.IsPrimitiveType(escape.ResultType, PrimitiveTypeKind.String), "DbLikeExpression escape must have a string result type");
System\Data\Common\DbCommandDefinition.cs (1)
166case PrimitiveTypeKind.String:
System\Data\Common\EntitySql\SemanticAnalyzer.cs (3)
2028if (!TypeSemantics.IsNumericType(operands.Left.ResultType) && !TypeSemantics.IsPrimitiveType(operands.Left.ResultType, PrimitiveTypeKind.String)) 2033if (!TypeSemantics.IsNumericType(operands.Right.ResultType) && !TypeSemantics.IsPrimitiveType(operands.Right.ResultType, PrimitiveTypeKind.String)) 4326return TypeSemantics.IsPrimitiveType(type, PrimitiveTypeKind.String);
System\Data\Common\EntitySql\TypeResolver.cs (2)
218/// Returns <see cref="TypeUsage"/> for <see cref="PrimitiveTypeKind.String"/>. 222get { return _perspective.MetadataWorkspace.GetCanonicalModelTypeUsage(PrimitiveTypeKind.String); }
System\Data\Common\Internal\DbTypeMap.cs (5)
25internal static readonly TypeUsage AnsiString = CreateType(PrimitiveTypeKind.String, new FacetValues { Unicode = false, FixedLength = false, MaxLength = (int?)null }); 26internal static readonly TypeUsage AnsiStringFixedLength = CreateType(PrimitiveTypeKind.String, new FacetValues { Unicode = false, FixedLength = true, MaxLength = (int?)null }); 27internal static readonly TypeUsage String = CreateType(PrimitiveTypeKind.String, new FacetValues { Unicode = true, FixedLength = false, MaxLength = (int?)null }); 28internal static readonly TypeUsage StringFixedLength = CreateType(PrimitiveTypeKind.String, new FacetValues { Unicode = true, FixedLength = true, MaxLength = (int?)null }); 31internal static readonly TypeUsage Xml = CreateType(PrimitiveTypeKind.String, new FacetValues { Unicode = true, FixedLength = false, MaxLength = (int?)null });
System\Data\Common\QueryCache\EntityClientCacheKey.cs (2)
130Debug.Assert(TypeSemantics.IsPrimitiveType(type, PrimitiveTypeKind.String), "Update GetTypeUsageToken to return 'Xml' for Xml parameters"); 143Debug.Assert(!TypeSemantics.IsPrimitiveType(type, PrimitiveTypeKind.String), "String TypeUsage not derived from DbType.AnsiString, AnsiString, String, StringFixedLength or Xml?");
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (1)
85case PrimitiveTypeKind.String:
System\Data\EntityModel\SchemaObjectModel\Schema.cs (1)
576EdmProviderManifest.Instance.GetPrimitiveType(PrimitiveTypeKind.String),
System\Data\EntityModel\SchemaObjectModel\SchemaElement.cs (1)
725TypeUsage.Create(EdmProviderManifest.Instance.GetPrimitiveType(PrimitiveTypeKind.String)),
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (4)
167else if (edmType is PrimitiveType && (edmType as PrimitiveType).PrimitiveTypeKind == PrimitiveTypeKind.String && 226case PrimitiveTypeKind.String: 465primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.String, "Expected binary or string type"); 759case PrimitiveTypeKind.String:
System\Data\Mapping\FunctionImportMappingNonComposable.cs (1)
221TypeUsage type = TypeUsage.CreateStringTypeUsage(workspace.GetModelPrimitiveType(PrimitiveTypeKind.String), true, false);
System\Data\Mapping\StorageMappingItemLoader.cs (1)
3333case PrimitiveTypeKind.String:
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
70typeDefaultMap[PrimitiveTypeKind.String] = String.Empty;
System\Data\Mapping\ViewGeneration\Structures\ScalarConstant.cs (1)
91else if (primitiveTypeKind == PrimitiveTypeKind.String)
System\Data\Metadata\CacheForPrimitiveTypes.cs (1)
104if ((primitiveTypeKind == PrimitiveTypeKind.String ||
System\Data\Metadata\Converter.cs (2)
78MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.String), 1374if (primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.String ||
System\Data\Metadata\Edm\AssociationSetEnd.cs (2)
81[MetadataProperty(PrimitiveTypeKind.String, false)] 95[MetadataProperty(PrimitiveTypeKind.String, false)]
System\Data\Metadata\Edm\EdmFunction.cs (3)
206[MetadataProperty(PrimitiveTypeKind.String, false)] 265[MetadataProperty(PrimitiveTypeKind.String, false)] 298[MetadataProperty(PrimitiveTypeKind.String, false)]
System\Data\Metadata\Edm\EdmMember.cs (1)
54[MetadataProperty(PrimitiveTypeKind.String, false)]
System\Data\Metadata\Edm\EdmType.cs (2)
105[MetadataProperty(PrimitiveTypeKind.String, false)] 122[MetadataProperty(PrimitiveTypeKind.String, false)]
System\Data\Metadata\Edm\EntityContainer.cs (1)
68[MetadataProperty(PrimitiveTypeKind.String, false)]
System\Data\Metadata\Edm\EntitySetBase.cs (4)
102[MetadataProperty(PrimitiveTypeKind.String, false)] 125[MetadataProperty(PrimitiveTypeKind.String, false)] 167[MetadataProperty(PrimitiveTypeKind.String, false)] 176[MetadataProperty(PrimitiveTypeKind.String, false)]
System\Data\Metadata\Edm\EnumMember.cs (1)
72[MetadataProperty(PrimitiveTypeKind.String, false)]
System\Data\Metadata\Edm\Facet.cs (1)
136[MetadataProperty(PrimitiveTypeKind.String, false)]
System\Data\Metadata\Edm\FunctionParameter.cs (1)
83[MetadataProperty(PrimitiveTypeKind.String, false)]
System\Data\Metadata\Edm\MetadataItem_Static.cs (1)
315TypeUsage stringTypeUsage = TypeUsage.Create(EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.String));
System\Data\Metadata\Edm\MetadataProperty.cs (1)
93[MetadataProperty(PrimitiveTypeKind.String, false)]
System\Data\Metadata\Edm\PrimitiveType.cs (1)
197case PrimitiveTypeKind.String:
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (3)
122primitiveTypeKind = PrimitiveTypeKind.String; 222primitiveTypes[(int)PrimitiveTypeKind.String] = CreatePrimitiveType(typeof(String), PrimitiveTypeKind.String);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (41)
137primitiveTypes[(int)PrimitiveTypeKind.String] = new PrimitiveType(); 169InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.String], PrimitiveTypeKind.String, EdmConstants.String, typeof(String)); 244FacetDescription[] list = EdmProviderManifest.GetInitialFacetDescriptions(PrimitiveTypeKind.String); 245PrimitiveType applicableType = _primitiveTypes[(int)PrimitiveTypeKind.String]; 351case PrimitiveTypeKind.String: 515PrimitiveTypeKind.String, 551functions.AddFunction(PrimitiveTypeKind.String, "Trim", PrimitiveTypeKind.String, "stringArgument"); 552functions.AddFunction(PrimitiveTypeKind.String, "RTrim", PrimitiveTypeKind.String, "stringArgument"); 553functions.AddFunction(PrimitiveTypeKind.String, "LTrim", PrimitiveTypeKind.String, "stringArgument"); 554functions.AddFunction(PrimitiveTypeKind.String, "Concat", PrimitiveTypeKind.String, "string1", PrimitiveTypeKind.String, "string2"); 555functions.AddFunction(PrimitiveTypeKind.Int32, "Length", PrimitiveTypeKind.String, "stringArgument"); 564functions.ForTypes(parameterTypes, type => functions.AddFunction(PrimitiveTypeKind.String, "Substring", PrimitiveTypeKind.String, "stringArgument", type, "start", type, "length")); 565functions.ForTypes(parameterTypes, type => functions.AddFunction(PrimitiveTypeKind.String, "Left", PrimitiveTypeKind.String, "stringArgument", type, "length")); 566functions.ForTypes(parameterTypes, type => functions.AddFunction(PrimitiveTypeKind.String, "Right", PrimitiveTypeKind.String, "stringArgument", type, "length")); 568functions.AddFunction(PrimitiveTypeKind.String, "Replace", PrimitiveTypeKind.String, "stringArgument", PrimitiveTypeKind.String, "toReplace", PrimitiveTypeKind.String, "replacement"); 569functions.AddFunction(PrimitiveTypeKind.Int32, "IndexOf", PrimitiveTypeKind.String, "searchString", PrimitiveTypeKind.String, "stringToFind"); 570functions.AddFunction(PrimitiveTypeKind.String, "ToUpper", PrimitiveTypeKind.String, "stringArgument"); 571functions.AddFunction(PrimitiveTypeKind.String, "ToLower", PrimitiveTypeKind.String, "stringArgument"); 572functions.AddFunction(PrimitiveTypeKind.String, "Reverse", PrimitiveTypeKind.String, "stringArgument"); 573functions.AddFunction(PrimitiveTypeKind.Boolean, "Contains", PrimitiveTypeKind.String, "searchedString", PrimitiveTypeKind.String, "searchedForString"); 574functions.AddFunction(PrimitiveTypeKind.Boolean, "StartsWith", PrimitiveTypeKind.String, "stringArgument", PrimitiveTypeKind.String, "prefix"); 575functions.AddFunction(PrimitiveTypeKind.Boolean, "EndsWith", PrimitiveTypeKind.String, "stringArgument", PrimitiveTypeKind.String, "suffix");
System\Data\Metadata\Edm\Provider\EdmProviderManifestSpatialFunctions.cs (29)
30functions.AddFunction(PrimitiveTypeKind.Geometry, "GeometryFromText", PrimitiveTypeKind.String, "geometryText"); 31functions.AddFunction(PrimitiveTypeKind.Geometry, "GeometryFromText", PrimitiveTypeKind.String, "geometryText", PrimitiveTypeKind.Int32, "srid"); 32functions.AddFunction(PrimitiveTypeKind.Geometry, "GeometryPointFromText", PrimitiveTypeKind.String, "pointText", PrimitiveTypeKind.Int32, "srid"); 33functions.AddFunction(PrimitiveTypeKind.Geometry, "GeometryLineFromText", PrimitiveTypeKind.String, "lineText", PrimitiveTypeKind.Int32, "srid"); 34functions.AddFunction(PrimitiveTypeKind.Geometry, "GeometryPolygonFromText", PrimitiveTypeKind.String, "polygonText", PrimitiveTypeKind.Int32, "srid"); 35functions.AddFunction(PrimitiveTypeKind.Geometry, "GeometryMultiPointFromText", PrimitiveTypeKind.String, "multiPointText", PrimitiveTypeKind.Int32, "srid"); 36functions.AddFunction(PrimitiveTypeKind.Geometry, "GeometryMultiLineFromText", PrimitiveTypeKind.String, "multiLineText", PrimitiveTypeKind.Int32, "srid"); 37functions.AddFunction(PrimitiveTypeKind.Geometry, "GeometryMultiPolygonFromText", PrimitiveTypeKind.String, "multiPolygonText", PrimitiveTypeKind.Int32, "srid"); 38functions.AddFunction(PrimitiveTypeKind.Geometry, "GeometryCollectionFromText", PrimitiveTypeKind.String, "geometryCollectionText", PrimitiveTypeKind.Int32, "srid"); 48functions.AddFunction(PrimitiveTypeKind.Geometry, "GeometryFromGml", PrimitiveTypeKind.String, "geometryGml"); 49functions.AddFunction(PrimitiveTypeKind.Geometry, "GeometryFromGml", PrimitiveTypeKind.String, "geometryGml", PrimitiveTypeKind.Int32, "srid"); 51functions.AddFunction(PrimitiveTypeKind.String, "SpatialTypeName", PrimitiveTypeKind.Geometry, "geometryValue"); 55functions.AddFunction(PrimitiveTypeKind.String, "AsGml", PrimitiveTypeKind.Geometry, "geometryValue"); 56functions.AddFunction(PrimitiveTypeKind.String, "AsText", PrimitiveTypeKind.Geometry, "geometryValue"); 69functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialRelate", PrimitiveTypeKind.Geometry, "geometryValue1", PrimitiveTypeKind.Geometry, "geometryValue2", PrimitiveTypeKind.String, "matrix"); 98functions.AddFunction(PrimitiveTypeKind.Geography, "GeographyFromText", PrimitiveTypeKind.String, "geographyText"); 99functions.AddFunction(PrimitiveTypeKind.Geography, "GeographyFromText", PrimitiveTypeKind.String, "geographyText", PrimitiveTypeKind.Int32, "srid"); 100functions.AddFunction(PrimitiveTypeKind.Geography, "GeographyPointFromText", PrimitiveTypeKind.String, "pointText", PrimitiveTypeKind.Int32, "srid"); 101functions.AddFunction(PrimitiveTypeKind.Geography, "GeographyLineFromText", PrimitiveTypeKind.String, "lineText", PrimitiveTypeKind.Int32, "srid"); 102functions.AddFunction(PrimitiveTypeKind.Geography, "GeographyPolygonFromText", PrimitiveTypeKind.String, "polygonText", PrimitiveTypeKind.Int32, "srid"); 103functions.AddFunction(PrimitiveTypeKind.Geography, "GeographyMultiPointFromText", PrimitiveTypeKind.String, "multiPointText", PrimitiveTypeKind.Int32, "srid"); 104functions.AddFunction(PrimitiveTypeKind.Geography, "GeographyMultiLineFromText", PrimitiveTypeKind.String, "multiLineText", PrimitiveTypeKind.Int32, "srid"); 105functions.AddFunction(PrimitiveTypeKind.Geography, "GeographyMultiPolygonFromText", PrimitiveTypeKind.String, "multiPolygonText", PrimitiveTypeKind.Int32, "srid"); 106functions.AddFunction(PrimitiveTypeKind.Geography, "GeographyCollectionFromText", PrimitiveTypeKind.String, "geographyCollectionText", PrimitiveTypeKind.Int32, "srid"); 116functions.AddFunction(PrimitiveTypeKind.Geography, "GeographyFromGml", PrimitiveTypeKind.String, "geographyGml"); 117functions.AddFunction(PrimitiveTypeKind.Geography, "GeographyFromGml", PrimitiveTypeKind.String, "geographyGml", PrimitiveTypeKind.Int32, "srid"); 119functions.AddFunction(PrimitiveTypeKind.String, "SpatialTypeName", PrimitiveTypeKind.Geography, "geographyValue"); 122functions.AddFunction(PrimitiveTypeKind.String, "AsGml", PrimitiveTypeKind.Geography, "geographyValue"); 123functions.AddFunction(PrimitiveTypeKind.String, "AsText", PrimitiveTypeKind.Geography, "geographyValue");
System\Data\Metadata\Edm\TypeUsage.cs (2)
126if (primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.String) 154if (primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.String)
System\Data\Metadata\TypeHelpers.cs (4)
276if (!TypeSemantics.IsPrimitiveType(type, PrimitiveTypeKind.String) && 289if (!TypeSemantics.IsPrimitiveType(type, PrimitiveTypeKind.String)) 306if (!TypeSemantics.IsPrimitiveType(type, PrimitiveTypeKind.String) && 823case PrimitiveTypeKind.String:
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
1392var escapeExpression = DbExpressionBuilder.Constant(EdmProviderManifest.Instance.GetCanonicalModelTypeUsage(PrimitiveTypeKind.String), new String(new char[] { escapeChar }));
System\Data\Objects\ELinq\Translator.cs (2)
1096if (TypeSemantics.IsPrimitiveType(left.ResultType, PrimitiveTypeKind.String) && 1097TypeSemantics.IsPrimitiveType(right.ResultType, PrimitiveTypeKind.String))
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
296MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.String);
System\Data\Query\InternalTrees\Command.cs (2)
72if (!TryGetPrimitiveType(PrimitiveTypeKind.String, out m_stringType)) 147if (modelType == PrimitiveTypeKind.String)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (8)
374defaultStringTypeName = GetSqlPrimitiveType(TypeUsage.CreateStringTypeUsage(this.metadataWorkspace.GetModelPrimitiveType(PrimitiveTypeKind.String), isUnicode: true, isFixedLength: false)); 728if (TypeSemantics.IsPrimitiveType(e.Left.ResultType, PrimitiveTypeKind.String)) 885if (!TypeSemantics.IsPrimitiveType(type, PrimitiveTypeKind.String)) 1014case PrimitiveTypeKind.String: 1808if (TypeSemantics.IsPrimitiveType(comparisonExpression.Left.ResultType, PrimitiveTypeKind.String)) 1846case PrimitiveTypeKind.String: 1931if (TypeSemantics.IsPrimitiveType(key.ResultType, PrimitiveTypeKind.String)) 3845case PrimitiveTypeKind.String:
System\Data\SqlClient\SqlProviderManifest.cs (9)
373newPrimitiveTypeKind = PrimitiveTypeKind.String; 380newPrimitiveTypeKind = PrimitiveTypeKind.String; 387newPrimitiveTypeKind = PrimitiveTypeKind.String; 394newPrimitiveTypeKind = PrimitiveTypeKind.String; 402newPrimitiveTypeKind = PrimitiveTypeKind.String; 411newPrimitiveTypeKind = PrimitiveTypeKind.String; 480Debug.Assert(newPrimitiveTypeKind == PrimitiveTypeKind.String || newPrimitiveTypeKind == PrimitiveTypeKind.Binary, "at this point only string and binary types should be present"); 484case PrimitiveTypeKind.String: 624case PrimitiveTypeKind.String:
System\Data\SqlClient\SqlProviderServices.cs (4)
158if (TypeSemantics.IsPrimitiveType(parameterType, PrimitiveTypeKind.String) || 378if (typeKind == PrimitiveTypeKind.String) 524case PrimitiveTypeKind.String: 654PrimitiveTypeKind.String == ((PrimitiveType)type.EdmType).PrimitiveTypeKind, "only valid for string type");
System.Data.Entity.Design (5)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
488if ((primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.String ||
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (2)
403PrimitiveTypeKind.String), 826PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.String),
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (1)
1420else if (primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.String ||
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
713case PrimitiveTypeKind.String:
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
635case PrimitiveTypeKind.String: