194 references to EdmConstants
System.Data.Entity (194)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (1)
191
sr.TypeResolver.AddNamespaceImport(new MetadataNamespace(
EdmConstants
.EdmNamespace), nsImportList != null ? nsImportList.ErrCtx : cmdErrCtx);
System\Data\EntityModel\SchemaObjectModel\SridFacetDescriptionElement.cs (1)
42
DefaultValue =
EdmConstants
.VariableValue;
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (2)
541
_facetValues.Add(EdmProviderManifest.MaxLengthFacetName,
EdmConstants
.UnboundedValue);
561
_facetValues.Add(EdmProviderManifest.SridFacetName,
EdmConstants
.VariableValue);
System\Data\Metadata\AspProxy.cs (3)
40
string result = PrivateMapWebPath(
EdmConstants
.WebHomeSymbol);
136
string errMsg = Strings.InvalidUseOfWebPath(
EdmConstants
.WebHomeSymbol);
145
Debug.Assert(path.StartsWith(
EdmConstants
.WebHomeSymbol, StringComparison.Ordinal));
System\Data\Metadata\CacheForPrimitiveTypes.cs (1)
38
private List<PrimitiveType>[] _primitiveTypeMap = new List<PrimitiveType>[
EdmConstants
.NumPrimitiveTypes];
System\Data\Metadata\Converter.cs (4)
36
EdmConstants
.EdmNamespace,
52
EdmConstants
.EdmNamespace,
895
FunctionParameter returnParameter = new FunctionParameter(
EdmConstants
.ReturnType + modifier, returnType, ParameterMode.ReturnValue);
923
returnParameters.Add(new FunctionParameter(
EdmConstants
.ReturnType, returnType, ParameterMode.ReturnValue));
System\Data\Metadata\Edm\CollectionType.cs (1)
40
EdmConstants
.TransientNamespace, elementType.EdmType.DataSpace)
System\Data\Metadata\Edm\Facet.cs (1)
188
return object.ReferenceEquals(Value,
EdmConstants
.UnboundedValue);
System\Data\Metadata\Edm\FacetValueContainer.cs (3)
60
public static implicit operator FacetValueContainer<T>(System.Data.Metadata.Edm.
EdmConstants
.Unbounded unbounded)
62
Debug.Assert(object.ReferenceEquals(unbounded,
EdmConstants
.UnboundedValue), "you must pass the unbounded value. If you are trying to set null, use the T parameter overload");
80
return
EdmConstants
.UnboundedValue;
System\Data\Metadata\Edm\MetadataItem_Static.cs (106)
83
EdmConstants
.ItemType,
89
EdmConstants
.ItemAttribute,
94
EdmConstants
.GlobalItem,
99
EdmConstants
.TypeUsage,
105
EdmConstants
.EdmType,
110
EdmConstants
.SimpleType,
115
EdmConstants
.EnumerationType,
120
EdmConstants
.PrimitiveType,
125
EdmConstants
.CollectionType,
130
EdmConstants
.RefType,
135
EdmConstants
.Member,
140
EdmConstants
.Property,
145
EdmConstants
.NavigationProperty,
150
EdmConstants
.ProviderManifest,
155
EdmConstants
.RelationshipEnd,
160
EdmConstants
.AssociationEnd,
165
EdmConstants
.EnumerationMember,
170
EdmConstants
.ReferentialConstraint,
176
EdmConstants
.StructuralType,
181
EdmConstants
.RowType,
186
EdmConstants
.ComplexType,
191
EdmConstants
.ElementType,
196
EdmConstants
.EntityType,
201
EdmConstants
.RelationshipType,
206
EdmConstants
.AssociationType,
211
EdmConstants
.Facet,
216
EdmConstants
.EntityContainerType,
221
EdmConstants
.BaseEntitySetType,
226
EdmConstants
.EntitySetType,
232
EdmConstants
.RelationshipSet,
237
EdmConstants
.AssociationSetType,
242
EdmConstants
.AssociationSetEndType,
247
EdmConstants
.FunctionParameter,
252
EdmConstants
.Function,
257
EdmConstants
.Documentation,
265
EdmConstants
.DeleteAction,
266
new string[] {
EdmConstants
.None,
EdmConstants
.Cascade,
EdmConstants
.Restrict });
269
EdmConstants
.RelationshipMultiplicity,
270
new string[] {
EdmConstants
.One,
EdmConstants
.ZeroToOne,
EdmConstants
.Many });
273
EdmConstants
.ParameterMode,
274
new string[] {
EdmConstants
.In,
EdmConstants
.Out,
EdmConstants
.InOut });
277
EdmConstants
.CollectionKind,
278
new string[] {
EdmConstants
.NoneCollectionKind,
EdmConstants
.ListCollectionKind,
EdmConstants
.BagCollectionKind });
281
EdmConstants
.PrimitiveTypeKind,
323
new EdmProperty[] { new EdmProperty(
EdmConstants
.Name, stringTypeUsage),
324
new EdmProperty(
EdmConstants
.TypeUsage, typeUsageTypeUsage),
325
new EdmProperty(
EdmConstants
.Value, complexTypeUsage) });
328
new EdmProperty[] { new EdmProperty(
EdmConstants
.ItemAttributes, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.MetadataProperty).GetCollectionType())),
329
new EdmProperty(
EdmConstants
.Documentation, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.Documentation))) });
332
new EdmProperty[] { new EdmProperty(
EdmConstants
.EdmType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmType))),
333
new EdmProperty(
EdmConstants
.Facets, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.Facet)))});
337
new EdmProperty[] { new EdmProperty(
EdmConstants
.Name, stringTypeUsage),
338
new EdmProperty(
EdmConstants
.Namespace, stringTypeUsage),
339
new EdmProperty(
EdmConstants
.Abstract, booleanTypeUsage),
340
new EdmProperty(
EdmConstants
.Sealed, booleanTypeUsage),
341
new EdmProperty(
EdmConstants
.BaseType, complexTypeUsage) } );
344
new EdmProperty[] { new EdmProperty(
EdmConstants
.EnumMembers, stringTypeUsage) });
347
new EdmProperty[] { new EdmProperty(
EdmConstants
.TypeUsage, typeUsageTypeUsage) });
350
new EdmProperty[] { new EdmProperty(
EdmConstants
.EntityType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EntityType))) });
353
new EdmProperty[] { new EdmProperty(
EdmConstants
.Name, stringTypeUsage),
354
new EdmProperty(
EdmConstants
.TypeUsage, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.TypeUsage))) });
357
new EdmProperty[] { new EdmProperty(
EdmConstants
.Nullable, stringTypeUsage),
358
new EdmProperty(
EdmConstants
.DefaultValue, complexTypeUsage) });
361
new EdmProperty[] { new EdmProperty(
EdmConstants
.RelationshipTypeName, stringTypeUsage),
362
new EdmProperty(
EdmConstants
.ToEndMemberName, stringTypeUsage) });
365
new EdmProperty[] { new EdmProperty(
EdmConstants
.OperationBehaviors, complexTypeUsage),
366
new EdmProperty(
EdmConstants
.RelationshipMultiplicity, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EnumType))) });
369
new EdmProperty[] { new EdmProperty(
EdmConstants
.Name, stringTypeUsage) });
372
new EdmProperty[] { new EdmProperty(
EdmConstants
.ToRole, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.RelationshipEndMember))),
373
new EdmProperty(
EdmConstants
.FromRole, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.RelationshipEndMember))),
374
new EdmProperty(
EdmConstants
.ToProperties, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmProperty).GetCollectionType())),
375
new EdmProperty(
EdmConstants
.FromProperties, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmProperty).GetCollectionType())) } );
379
new EdmProperty[] { new EdmProperty(
EdmConstants
.Members, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmMember))) });
382
new EdmProperty[] { new EdmProperty(
EdmConstants
.KeyMembers, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmMember))) });
385
new EdmProperty[] { new EdmProperty(
EdmConstants
.Name, stringTypeUsage),
386
new EdmProperty(
EdmConstants
.EdmType, edmTypeUsage),
387
new EdmProperty(
EdmConstants
.Value, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmType))) });
390
new EdmProperty[] { new EdmProperty(
EdmConstants
.Name, stringTypeUsage),
391
new EdmProperty(
EdmConstants
.EntitySets, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EntitySet))) });
394
new EdmProperty[] { new EdmProperty(
EdmConstants
.Name, stringTypeUsage),
395
new EdmProperty(
EdmConstants
.EntityType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EntityType))),
396
new EdmProperty(
EdmConstants
.Schema, stringTypeUsage),
397
new EdmProperty(
EdmConstants
.Table, stringTypeUsage)
401
new EdmProperty[] { new EdmProperty(
EdmConstants
.AssociationSetEnds, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.AssociationSetEnd).GetCollectionType()))});
404
new EdmProperty[] { new EdmProperty(
EdmConstants
.Role, stringTypeUsage),
405
new EdmProperty(
EdmConstants
.EntitySetType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EntitySet))) } );
408
new EdmProperty[] { new EdmProperty(
EdmConstants
.Name, stringTypeUsage),
409
new EdmProperty(
EdmConstants
.Mode, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EnumType))),
410
new EdmProperty(
EdmConstants
.TypeUsage, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.TypeUsage))) });
413
new EdmProperty[] { new EdmProperty(
EdmConstants
.Name, stringTypeUsage),
414
new EdmProperty(
EdmConstants
.Namespace, stringTypeUsage),
415
new EdmProperty(
EdmConstants
.ReturnParameter, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.FunctionParameter))),
416
new EdmProperty(
EdmConstants
.Parameters, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.FunctionParameter).GetCollectionType())) });
419
new EdmProperty[] { new EdmProperty(
EdmConstants
.Summary, stringTypeUsage),
420
new EdmProperty(
EdmConstants
.LongDescription, stringTypeUsage) });
431
private static EdmType[] _builtInTypes = new EdmType[
EdmConstants
.NumBuiltInTypes];
496
EdmType.Initialize(builtInType, name,
EdmConstants
.EdmNamespace, DataSpace.CSpace, isAbstract, baseType);
531
EdmConstants
.EdmNamespace,
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
49
get { return
EdmConstants
.ClrPrimitiveTypeNamespace; }
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (38)
61
get { return
EdmConstants
.EdmNamespace; }
124
PrimitiveType[] primitiveTypes = new PrimitiveType[
EdmConstants
.NumPrimitiveTypes];
157
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Binary], PrimitiveTypeKind.Binary,
EdmConstants
.Binary, typeof(Byte[]));
158
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Boolean], PrimitiveTypeKind.Boolean,
EdmConstants
.Boolean, typeof(Boolean));
159
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Byte], PrimitiveTypeKind.Byte,
EdmConstants
.Byte, typeof(Byte));
160
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.DateTime], PrimitiveTypeKind.DateTime,
EdmConstants
.DateTime, typeof(DateTime));
161
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Decimal], PrimitiveTypeKind.Decimal,
EdmConstants
.Decimal, typeof(Decimal));
162
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Double], PrimitiveTypeKind.Double,
EdmConstants
.Double, typeof(Double));
163
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Single], PrimitiveTypeKind.Single,
EdmConstants
.Single, typeof(Single));
164
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Guid], PrimitiveTypeKind.Guid,
EdmConstants
.Guid, typeof(Guid));
165
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Int16], PrimitiveTypeKind.Int16,
EdmConstants
.Int16, typeof(Int16));
166
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Int32], PrimitiveTypeKind.Int32,
EdmConstants
.Int32, typeof(Int32));
167
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Int64], PrimitiveTypeKind.Int64,
EdmConstants
.Int64, typeof(Int64));
168
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.SByte], PrimitiveTypeKind.SByte,
EdmConstants
.SByte, typeof(SByte));
169
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.String], PrimitiveTypeKind.String,
EdmConstants
.String, typeof(String));
170
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Time], PrimitiveTypeKind.Time,
EdmConstants
.Time, typeof(TimeSpan));
171
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.DateTimeOffset], PrimitiveTypeKind.DateTimeOffset,
EdmConstants
.DateTimeOffset, typeof(DateTimeOffset));
172
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Geography], PrimitiveTypeKind.Geography,
EdmConstants
.Geography, typeof(DbGeography));
173
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyPoint], PrimitiveTypeKind.GeographyPoint,
EdmConstants
.GeographyPoint, typeof(DbGeography));
174
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyLineString], PrimitiveTypeKind.GeographyLineString,
EdmConstants
.GeographyLineString, typeof(DbGeography));
175
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyPolygon], PrimitiveTypeKind.GeographyPolygon,
EdmConstants
.GeographyPolygon, typeof(DbGeography));
176
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyMultiPoint], PrimitiveTypeKind.GeographyMultiPoint,
EdmConstants
.GeographyMultiPoint, typeof(DbGeography));
177
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyMultiLineString], PrimitiveTypeKind.GeographyMultiLineString,
EdmConstants
.GeographyMultiLineString, typeof(DbGeography));
178
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyMultiPolygon], PrimitiveTypeKind.GeographyMultiPolygon,
EdmConstants
.GeographyMultiPolygon, typeof(DbGeography));
179
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyCollection], PrimitiveTypeKind.GeographyCollection,
EdmConstants
.GeographyCollection, typeof(DbGeography));
180
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Geometry], PrimitiveTypeKind.Geometry,
EdmConstants
.Geometry, typeof(DbGeometry));
181
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryPoint], PrimitiveTypeKind.GeometryPoint,
EdmConstants
.GeometryPoint, typeof(DbGeometry));
182
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryLineString], PrimitiveTypeKind.GeometryLineString,
EdmConstants
.GeometryLineString, typeof(DbGeometry));
183
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryPolygon], PrimitiveTypeKind.GeometryPolygon,
EdmConstants
.GeometryPolygon, typeof(DbGeometry));
184
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryMultiPoint], PrimitiveTypeKind.GeometryMultiPoint,
EdmConstants
.GeometryMultiPoint, typeof(DbGeometry));
185
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryMultiLineString], PrimitiveTypeKind.GeometryMultiLineString,
EdmConstants
.GeometryMultiLineString, typeof(DbGeometry));
186
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryMultiPolygon], PrimitiveTypeKind.GeometryMultiPolygon,
EdmConstants
.GeometryMultiPolygon, typeof(DbGeometry));
187
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryCollection], PrimitiveTypeKind.GeometryCollection,
EdmConstants
.GeometryCollection, typeof(DbGeometry));
216
EdmConstants
.EdmNamespace,
752
System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>[] promotionTypes = new System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>[
EdmConstants
.NumPrimitiveTypes];
754
for (int i = 0; i <
EdmConstants
.NumPrimitiveTypes; i++)
861
TypeUsage[] canonicalTypes = new TypeUsage[
EdmConstants
.NumPrimitiveTypes];
862
for (int primitiveTypeIndex = 0; primitiveTypeIndex <
EdmConstants
.NumPrimitiveTypes; primitiveTypeIndex++)
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (5)
46
for (int idx = 0; idx <
EdmConstants
.NumPrimitiveTypes; idx++)
54
for (int idx = 0; idx <
EdmConstants
.NumPrimitiveTypes; idx++)
85
EdmConstants
.EdmNamespace,
166
EdmConstants
.EdmNamespace,
193
return new FunctionParameter(
EdmConstants
.ReturnType, this.primitiveTypes[(int)primitiveReturnType], ParameterMode.ReturnValue);
System\Data\Metadata\Edm\RefType.cs (1)
30
EdmConstants
.TransientNamespace, entityType.DataSpace)
System\Data\Metadata\Edm\RowType.cs (1)
43
: base(GetRowTypeIdentityFromProperties(CheckProperties(properties), initializerMetadata),
EdmConstants
.TransientNamespace, (DataSpace)(-1))
System\Data\Metadata\Edm\TypeUsage.cs (6)
345
internal static readonly
EdmConstants
.Unbounded DefaultMaxLengthFacetValue =
EdmConstants
.UnboundedValue;
346
internal static readonly
EdmConstants
.Unbounded DefaultPrecisionFacetValue =
EdmConstants
.UnboundedValue;
347
internal static readonly
EdmConstants
.Unbounded DefaultScaleFacetValue =
EdmConstants
.UnboundedValue;
System\Data\Metadata\EdmItemCollection.cs (6)
239
return (namespaceName ==
EdmConstants
.TransientNamespace ||
240
namespaceName ==
EdmConstants
.EdmNamespace ||
241
namespaceName ==
EdmConstants
.ClrPrimitiveTypeNamespace);
245
return (namespaceName ==
EdmConstants
.TransientNamespace ||
246
namespaceName ==
EdmConstants
.EdmNamespace ||
247
namespaceName ==
EdmConstants
.ClrPrimitiveTypeNamespace ||
System\Data\Metadata\Helper.cs (5)
350
return object.ReferenceEquals(facet.Value,
EdmConstants
.UnboundedValue);
355
return object.ReferenceEquals(facet.Value,
EdmConstants
.VariableValue);
483
return
EdmConstants
.In;
485
return
EdmConstants
.Out;
487
return
EdmConstants
.InOut;
System\Data\Metadata\MetadataArtifactLoader.cs (1)
443
if (path.StartsWith(
EdmConstants
.WebHomeSymbol, StringComparison.Ordinal))
System\Data\Metadata\TypeHelpers.cs (1)
841
bool isCanonicalFunction = (function.DataSpace == DataSpace.CSpace && function.NamespaceName ==
EdmConstants
.EdmNamespace);
System\Data\Metadata\TypeSemantics.cs (6)
1114
objectModel.ReadOnlyCollection<PrimitiveType>[,] commonTypeClosure = new objectModel.ReadOnlyCollection<PrimitiveType>[
EdmConstants
.NumPrimitiveTypes,
EdmConstants
.NumPrimitiveTypes];
1115
for (int i = 0; i <
EdmConstants
.NumPrimitiveTypes; i++)
1122
for (int i = 0; i <
EdmConstants
.NumPrimitiveTypes; i++)
1136
for (int i = 0; i <
EdmConstants
.NumPrimitiveTypes; i++)
1138
for (int j = 0; j <
EdmConstants
.NumPrimitiveTypes; j++)