54 references to MetadataUtil
System.Data.Entity.Design (54)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
769
if (
MetadataUtil
.TrySplitExtendedMetadataPropertyName(property.Name, out xmlNamespace, out attributeName))
System\Data\Entity\Design\Common\MetadataUtil.cs (3)
49
throw
MetadataUtil
.ProviderIncompatible(System.Data.Entity.Design.Strings.EntityClient_DoesNotImplementIServiceProvider(
56
throw
MetadataUtil
.ProviderIncompatible(
141
MetadataUtil
.ToCommaSeparatedString(builder, members);
System\Data\Entity\Design\EntityCodeGenerator.cs (1)
387
if (
MetadataUtil
.IsCatchableExceptionType(e))
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (4)
91
if (!
MetadataUtil
.IsStoreType(storeEntityContainer))
445
if (
MetadataUtil
.IsCatchableExceptionType(e))
569
Debug.Assert(
MetadataUtil
.IsStoreType(tvfReturnType), "this is not a store type");
762
Debug.Assert(
MetadataUtil
.IsStoreType(storeEntityType), "this is not a store type");
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (9)
212
if (
MetadataUtil
.IsCatchableExceptionType(e))
313
DbProviderServices providerServices =
MetadataUtil
.GetProviderServices(factory);
401
if (
MetadataUtil
.IsCatchableExceptionType(e))
428
if (!
MetadataUtil
.CheckIfAllErrorsAreWarnings(errors))
430
throw EDesignUtil.ProviderIncompatible(Strings.ProviderSchemaErrors, EntityUtil.InvalidSchemaEncountered(
MetadataUtil
.CombineErrorMessage(errors)));
1067
string foreignKeys =
MetadataUtil
.MembersToCommaSeparatedString((System.Collections.IEnumerable)constraint.ToProperties);
1068
string primaryKeys =
MetadataUtil
.MembersToCommaSeparatedString((System.Collections.IEnumerable)toType.KeyMembers);
1198
if (!
MetadataUtil
.IsValidKeyType(_targetEntityFrameworkVersion, pkColumn.TypeUsage.EdmType))
1475
MetadataUtil
.IsValidKeyType(_targetEntityFrameworkVersion, primitiveType))
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (1)
167
if (
MetadataUtil
.IsStoreType(type))
System\Data\Entity\Design\SSDLGenerator\EntityStoreSchemaGeneratorDatabaseSchemaLoader.cs (1)
53
if (!
MetadataUtil
.IsCatchableExceptionType(e))
System\Data\EntityModel\Emitters\AttributeEmitter.cs (5)
214
if (
MetadataUtil
.IsPrimitiveType(emitter.Item.TypeUsage.EdmType) ||
MetadataUtil
.IsEnumerationType(emitter.Item.TypeUsage.EdmType))
234
Debug.Assert(
MetadataUtil
.IsComplexType(emitter.Item.TypeUsage.EdmType) ||
235
(
MetadataUtil
.IsCollectionType(emitter.Item.TypeUsage.EdmType)),
248
if (!
MetadataUtil
.IsCollectionType(emitter.Item.TypeUsage.EdmType))
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
261
if (
MetadataUtil
.IsEntitySet(entitySetBase))
System\Data\EntityModel\Emitters\CommentEmitter.cs (5)
51
if (documentation != null && !
MetadataUtil
.IsNullOrEmptyOrWhiteSpace(documentation.Summary))
184
if (start >= 0 &&
MetadataUtil
.IsNullOrEmptyOrWhiteSpace(text, 0, start + 1))
194
if (last > start - 1 &&
MetadataUtil
.IsNullOrEmptyOrWhiteSpace(text, last))
211
text =
MetadataUtil
.Entityize(text);
225
if (
MetadataUtil
.IsNullOrEmptyOrWhiteSpace(line))
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (4)
88
if (
MetadataUtil
.IsEntitySet(entitySetBase))
101
if (
MetadataUtil
.IsEntitySet(entitySetBase))
179
if (
MetadataUtil
.IsEntitySet(entitySetBase))
645
Debug.Assert(null != parameter &&
MetadataUtil
.IsPrimitiveType(parameter.TypeUsage.EdmType),
System\Data\EntityModel\Emitters\PropertyEmitter.cs (14)
126
if (
MetadataUtil
.IsComplexType(Item.TypeUsage.EdmType))
232
if (
MetadataUtil
.IsComplexType(Item.TypeUsage.EdmType))
334
if (
MetadataUtil
.IsPrimitiveType(Item.TypeUsage.EdmType))
338
else if (
MetadataUtil
.IsComplexType(Item.TypeUsage.EdmType))
343
else if (
MetadataUtil
.IsCollectionType(Item.TypeUsage.EdmType))
345
if (
MetadataUtil
.IsComplexType(((CollectionType)Item.TypeUsage.EdmType).TypeUsage.EdmType))
351
Debug.Assert(
MetadataUtil
.IsPrimitiveType(((CollectionType)Item.TypeUsage.EdmType).TypeUsage.EdmType),
357
else if (
MetadataUtil
.IsEnumerationType(Item.TypeUsage.EdmType))
454
Debug.Assert(((
MetadataUtil
.IsPrimitiveType(Item.TypeUsage.EdmType)) || (
MetadataUtil
.IsCollectionType(Item.TypeUsage.EdmType)))
571
if (
MetadataUtil
.IsPrimitiveType(propertyType))
575
else if (
MetadataUtil
.IsComplexType(propertyType))
582
if (
MetadataUtil
.IsPrimitiveType(typeUsage.EdmType))
588
Debug.Assert(
MetadataUtil
.IsComplexType(typeUsage.EdmType));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
210
if (
MetadataUtil
.IsComplexType(propertyEmitter.Item.TypeUsage.EdmType))
System\Data\EntityModel\Emitters\Utils.cs (1)
299
if (!
MetadataUtil
.IsPrimitiveType(type))
System\Data\EntityModel\EntityClassGenerator.cs (3)
142
if (
MetadataUtil
.IsCatchableExceptionType(e))
234
if(
MetadataUtil
.IsCatchableExceptionType(e))
299
MetadataUtil
.DisposeXmlReaders(readers);