364 references to EdmSchemaErrorSeverity
System.Data.Entity (251)
System\Data\Common\Utils\MetadataHelper.cs (1)
810if (error.Severity != EdmSchemaErrorSeverity.Warning)
System\Data\EntityModel\SchemaObjectModel\Documentation.cs (1)
82AddError(ErrorCode.UnexpectedXmlElement, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidDocumentationBothTextAndStructure);
System\Data\EntityModel\SchemaObjectModel\EntityContainer.cs (6)
230AddError(ErrorCode.EntityContainerCannotExtendItself, EdmSchemaErrorSeverity.Error, 235AddError(ErrorCode.InvalidEntityContainerNameInExtends, EdmSchemaErrorSeverity.Error, 352schemaElement.AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error, 383EdmSchemaErrorSeverity.Error, 411EdmSchemaErrorSeverity.Error, 537entitySet.AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.DuplicateEntitySetTable(entitySet.Name, schema, table));
System\Data\EntityModel\SchemaObjectModel\EntityContainerAssociationSet.cs (2)
107end.AddError( ErrorCode.InvalidName, EdmSchemaErrorSeverity.Error, reader, 135end.AddError(ErrorCode.InvalidName, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\EntityContainerAssociationSetEnd.cs (3)
118AddError(ErrorCode.InvalidContainerTypeForEnd, EdmSchemaErrorSeverity.Error, 156AddError( ErrorCode.FailedInference, EdmSchemaErrorSeverity.Error, 163AddError( ErrorCode.FailedInference, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\EntityContainerEntitySet.cs (3)
221AddError( ErrorCode.InvalidPropertyType, EdmSchemaErrorSeverity.Error, 234AddError(ErrorCode.EntitySetTypeHasNoKeys, EdmSchemaErrorSeverity.Error, 244AddError(ErrorCode.TableAndSchemaAreMutuallyExclusiveWithDefiningQuery, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\EntityContainerEntitySetDefiningQuery.cs (1)
49AddError(ErrorCode.EmptyDefiningQuery, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\EntityContainerRelationshipSet.cs (3)
95AddError( ErrorCode.InvalidPropertyType, EdmSchemaErrorSeverity.Error, 206AddError( ErrorCode.MissingExtentEntityContainerEnd, EdmSchemaErrorSeverity.Error, 212AddError( ErrorCode.AmbiguousEntityContainerEnd, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\EntityContainerRelationshipSetEnd.cs (2)
108AddError( ErrorCode.InvalidEndEntitySet, EdmSchemaErrorSeverity.Error, 136AddError( ErrorCode.InvalidEndEntitySet, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\EntityKeyElement.cs (6)
88AddError(ErrorCode.InvalidKey, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidKeyNoProperty(this.ParentElement.FQName, property.Name)); 108AddError(ErrorCode.DuplicatePropertySpecifiedInEntityKey, EdmSchemaErrorSeverity.Error, 117AddError(ErrorCode.InvalidKey, EdmSchemaErrorSeverity.Error, 125EdmSchemaErrorSeverity.Error, 143EdmSchemaErrorSeverity.Error, 156EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\Function.cs (10)
426AddError(ErrorCode.ReturnTypeDeclaredAsAttributeAndElement, EdmSchemaErrorSeverity.Error, Strings.TypeDeclaredAsAttributeAndElement); 436AddError(ErrorCode.ComposableFunctionOrFunctionImportWithoutReturnType, EdmSchemaErrorSeverity.Error, 445AddError(ErrorCode.NonComposableFunctionWithReturnType, EdmSchemaErrorSeverity.Error, 460EdmSchemaErrorSeverity.Error, 471EdmSchemaErrorSeverity.Error, 485AddError(ErrorCode.NonComposableFunctionAttributesNotValid, EdmSchemaErrorSeverity.Error, 495AddError(ErrorCode.ComposableFunctionWithCommandText, EdmSchemaErrorSeverity.Error, 502AddError(ErrorCode.FunctionDeclaresCommandTextAndStoreFunctionName, EdmSchemaErrorSeverity.Error, 515EdmSchemaErrorSeverity.Error, 783AddError(ErrorCode.InvalidValueForParameterTypeSemantics, EdmSchemaErrorSeverity.Error, reader,
System\Data\EntityModel\SchemaObjectModel\FunctionCommandText.cs (1)
49AddError(ErrorCode.EmptyCommandText, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\FunctionImportElement.cs (10)
126EdmSchemaErrorSeverity.Error, 151EdmSchemaErrorSeverity.Error, 162EdmSchemaErrorSeverity.Error, 169EdmSchemaErrorSeverity.Error, 181EdmSchemaErrorSeverity.Error, 230EdmSchemaErrorSeverity.Error, 241EdmSchemaErrorSeverity.Error, 248EdmSchemaErrorSeverity.Error, 264EdmSchemaErrorSeverity.Error, 280EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\ItemType.cs (3)
56AddError(ErrorCode.InvalidBaseType, EdmSchemaErrorSeverity.Error, 62AddError(ErrorCode.InvalidKey, EdmSchemaErrorSeverity.Error, 70AddError(ErrorCode.KeyMissingOnEntityType, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\NavigationProperty.cs (5)
125AddError(ErrorCode.BadNavigationProperty, EdmSchemaErrorSeverity.Error, 133AddError(ErrorCode.BadNavigationProperty, EdmSchemaErrorSeverity.Error, 140AddError(ErrorCode.BadNavigationProperty, EdmSchemaErrorSeverity.Error, 148AddError(ErrorCode.BadNavigationProperty, EdmSchemaErrorSeverity.Error, 165AddError(ErrorCode.BadNavigationProperty, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\OnOperation.cs (1)
114AddError( ErrorCode.InvalidAction, EdmSchemaErrorSeverity.Error, reader, System.Data.Entity.Strings.InvalidAction(reader.Value, ParentElement.FQName ) );
System\Data\EntityModel\SchemaObjectModel\Parameter.cs (3)
258AddError(ErrorCode.BadParameterDirection, EdmSchemaErrorSeverity.Error, reader, 394EdmSchemaErrorSeverity.Error, 401EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\PrimitiveSchema.cs (1)
32EdmSchemaErrorSeverity.Error));
System\Data\EntityModel\SchemaObjectModel\ReferentialConstraint.cs (11)
58EdmSchemaErrorSeverity.Error, 85EdmSchemaErrorSeverity.Error, 114EdmSchemaErrorSeverity.Error, 122EdmSchemaErrorSeverity.Error, 141EdmSchemaErrorSeverity.Error, 151EdmSchemaErrorSeverity.Error, 162EdmSchemaErrorSeverity.Error, 175EdmSchemaErrorSeverity.Error, 184EdmSchemaErrorSeverity.Error, 191EdmSchemaErrorSeverity.Error, 201EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\ReferentialConstraintRoleElement.cs (2)
110EdmSchemaErrorSeverity.Error, 137EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\Relationship.cs (3)
124end.AddError( ErrorCode.InvalidOperation, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidOperationMultipleEndsInAssociation); 135EdmSchemaErrorSeverity.Error, 195AddError( ErrorCode.InvalidAssociation, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.TooManyAssociationEnds(FQName ) );
System\Data\EntityModel\SchemaObjectModel\RelationshipEnd.cs (5)
97AddError(ErrorCode.InvalidRelationshipEndType, EdmSchemaErrorSeverity.Error, 111EdmSchemaErrorSeverity.Error, 122EdmSchemaErrorSeverity.Error, 216AddError(ErrorCode.InvalidMultiplicity, EdmSchemaErrorSeverity.Error, reader, System.Data.Entity.Strings.InvalidRelationshipEndMultiplicity(ParentElement.Name, reader.Value)); 242AddError(ErrorCode.InvalidOperation, EdmSchemaErrorSeverity.Error, reader, System.Data.Entity.Strings.DuplicationOperation(reader.Name));
System\Data\EntityModel\SchemaObjectModel\RelationshipEndCollection.cs (1)
87end.AddError( ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\ReturnType.cs (4)
323EdmSchemaErrorSeverity.Error, 339EdmSchemaErrorSeverity.Error, 352EdmSchemaErrorSeverity.Error, 372EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\RowTypeElement.cs (1)
147AddError(ErrorCode.RowTypeWithoutProperty, EdmSchemaErrorSeverity.Error, Strings.RowTypeWithoutProperty);
System\Data\EntityModel\SchemaObjectModel\Schema.cs (26)
117AddError(ErrorCode.IOException, EdmSchemaErrorSeverity.Error, sourceReader, ex); 158AddError(ErrorCode.EmptyFile, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.EmptyFile(sourceLocation)); 162AddError(ErrorCode.EmptyFile, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.EmptySchemaTextReader); 171AddError(ErrorCode.UnexpectedXmlElement, EdmSchemaErrorSeverity.Error, messageFormat(sourceReader.NamespaceURI, sourceReader.LocalName, expectedNamespacesString)); 223AddError(ErrorCode.UnexpectedXmlElement, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.UnexpectedRootElement(sourceReader.NamespaceURI, sourceReader.LocalName, SchemaXmlNamespace)); 230AddError(ErrorCode.InternalError, EdmSchemaErrorSeverity.Error, ex.Message); 234AddError(ErrorCode.UnauthorizedAccessException, EdmSchemaErrorSeverity.Error, sourceReader, ex); 238AddError(ErrorCode.IOException, EdmSchemaErrorSeverity.Error, sourceReader, ex); 242AddError(ErrorCode.SecurityError, EdmSchemaErrorSeverity.Error, sourceReader, ex); 246AddError(ErrorCode.XmlError, EdmSchemaErrorSeverity.Error, sourceReader, ex); 332EdmSchemaErrorSeverity severity = EdmSchemaErrorSeverity.Error; 334severity = EdmSchemaErrorSeverity.Warning; 441AddError(ErrorCode.MissingNamespaceAttribute, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.MissingNamespaceAttribute); 448AddError(ErrorCode.CannotUseSystemNamespaceAsAlias, EdmSchemaErrorSeverity.Error, 457AddError(ErrorCode.SystemNamespace, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.SystemNamespaceEncountered(Namespace)); 495return _schemaManager.GetProviderManifest((string message, ErrorCode code, EdmSchemaErrorSeverity severity)=>AddError(code, severity, message)); 855usingElement.AddError(ErrorCode.NotInNamespace, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.NotNamespaceQualified(typeName)); 859usingElement.AddError(ErrorCode.BadNamespace, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.BadNamespaceOrAlias(actualQualification)); 866usingElement.AddError(ErrorCode.NotInNamespace, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.NotInNamespaceAlias(unqualifiedTypeName, namespaceName, definingQualification)); 870usingElement.AddError(ErrorCode.NotInNamespace, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.NotInNamespaceNoAlias(unqualifiedTypeName, namespaceName)); 879usingElement.AddError(ErrorCode.InvalidNamespaceOrAliasSpecified, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidNamespaceOrAliasSpecified(actualQualification)); 969(string message, ErrorCode code, EdmSchemaErrorSeverity severity) => AddError(code, severity, reader, message)); 982(string message, ErrorCode code, EdmSchemaErrorSeverity severity) => AddError(code, severity, reader, message)); 1172function.AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error, 1182function.AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\SchemaComplexType.cs (1)
47AddError( ErrorCode.InvalidBaseType, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\SchemaElement.cs (12)
187internal void AddError( ErrorCode errorCode, EdmSchemaErrorSeverity severity, int lineNumber, int linePosition, object message ) 199internal void AddError( ErrorCode errorCode, EdmSchemaErrorSeverity severity, XmlReader reader, object message ) 213internal void AddError( ErrorCode errorCode, EdmSchemaErrorSeverity severity, object message ) 225internal void AddError( ErrorCode errorCode, EdmSchemaErrorSeverity severity, SchemaElement element, object message ) 302AddError( ErrorCode.UnexpectedXmlNodeType, EdmSchemaErrorSeverity.Error, reader, 312AddError( ErrorCode.MalformedXml, EdmSchemaErrorSeverity.Error, 0, 0, 566private void AddError( ErrorCode errorCode, EdmSchemaErrorSeverity severity, string sourceLocation, int lineNumber, int linePosition, object message ) 617AddError(ErrorCode.UnexpectedXmlAttribute, EdmSchemaErrorSeverity.Error, reader, System.Data.Entity.Strings.UnexpectedXmlAttribute(reader.Name)); 678AddError(ErrorCode.NoCodeGenNamespaceInStructuralAnnotation, EdmSchemaErrorSeverity.Error, lineNumber, linePosition, Strings.NoCodeGenNamespaceInStructuralAnnotation(XmlConstants.CodeGenerationSchemaNamespace)); 716AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error, lineNumber, linePosition, Strings.DuplicateAnnotation(property.Identity, this.FQName)); 755AddError(ErrorCode.UnexpectedXmlElement, EdmSchemaErrorSeverity.Error, reader, System.Data.Entity.Strings.UnexpectedXmlElement(reader.Name)); 793AddError( ErrorCode.TextNotAllowed, EdmSchemaErrorSeverity.Error, reader, System.Data.Entity.Strings.TextNotAllowed(reader.Value ) );
System\Data\EntityModel\SchemaObjectModel\SchemaElementLookUpTable.cs (2)
155type.AddError(ErrorCode.InvalidName, EdmSchemaErrorSeverity.Error, 162type.AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (4)
181EdmSchemaErrorSeverity.Error, 224EdmSchemaErrorSeverity.Error, 238EdmSchemaErrorSeverity.Error, 247EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\SchemaLookupTable.cs (4)
71usingElement.AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.AliasNameIsAlreadyDefined(newAlias)); 105usingElement.AddError(ErrorCode.InvalidNamespaceInUsing, EdmSchemaErrorSeverity.Error, 131refSchema.AddError(ErrorCode.CannotUseSystemNamespaceAsAlias, EdmSchemaErrorSeverity.Error, 136refSchema.AddError(ErrorCode.NeedNotUseSystemNamespaceInUsing, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (7)
23internal delegate void AttributeValueNotification(string token, Action<string, ErrorCode, EdmSchemaErrorSeverity> addError); 24internal delegate DbProviderManifest ProviderManifestNeeded(Action<string, ErrorCode, EdmSchemaErrorSeverity> addError); 94public static void NoOpAttributeValueNotification(string attributeValue, Action<string, ErrorCode, EdmSchemaErrorSeverity> addError) { } 106delegate(Action<string, ErrorCode, EdmSchemaErrorSeverity> addError) { return providerManifest == null ? MetadataItem.EdmProviderManifest : providerManifest; }, 284EdmSchemaErrorSeverity.Error)); 389errorCollection.Where(e => e.Severity == EdmSchemaErrorSeverity.Error).Count() > MaxErrorCount) 407internal DbProviderManifest GetProviderManifest(Action<string, ErrorCode, EdmSchemaErrorSeverity> addError)
System\Data\EntityModel\SchemaObjectModel\StructuredProperty.cs (3)
174AddError(ErrorCode.InvalidPropertyType, EdmSchemaErrorSeverity.Error, 225AddError(ErrorCode.NullableComplexType, EdmSchemaErrorSeverity.Error, 264AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error, reader,
System\Data\EntityModel\SchemaObjectModel\StructuredType.cs (4)
188member.AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error, errorMessage); 221newMember.AddError(ErrorCode.BadProperty, EdmSchemaErrorSeverity.Error, 343AddError(ErrorCode.InvalidBaseType, EdmSchemaErrorSeverity.Error, 355AddError(ErrorCode.CycleInTypeHierarchy, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\TypeElement.cs (4)
204AddError(ErrorCode.InvalidPrimitiveTypeKind, EdmSchemaErrorSeverity.Error, 254EdmSchemaErrorSeverity.Error, 288EdmSchemaErrorSeverity.Error, 317EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (23)
127EdmSchemaErrorSeverity.Error, 144_element.AddError(ErrorCode.RequiredFacetMissing, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.RequiredFacetMissing( 176EdmSchemaErrorSeverity.Error, 283EdmSchemaErrorSeverity.Error, 388EdmSchemaErrorSeverity.Error, 407EdmSchemaErrorSeverity.Error, 418_element.AddError(ErrorCode.BadPrecisionAndScale, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.BadPrecisionAndScale(precision, scale)); 445EdmSchemaErrorSeverity.Error, 487_element.AddError(ErrorCode.InvalidSize, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidSize(length, minLength, maxLength, primitiveType.Name)); 500EdmSchemaErrorSeverity.Error, 508_element.AddError(ErrorCode.UnexpectedSpatialType, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.SpatialWithUseStrongSpatialTypesFalse); 530_element.AddError(ErrorCode.InvalidSystemReferenceId, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidSystemReferenceId(srid, minSrid, maxSrid, primitiveType.Name)); 694_element.AddError(ErrorCode.DefaultNotAllowed, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.DefaultNotAllowed); 764_element.AddError(ErrorCode.DefaultNotAllowed, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.DefaultNotAllowed); 778_element.AddError(ErrorCode.InvalidDefault, EdmSchemaErrorSeverity.Error, errorMessage); 784_element.AddError(ErrorCode.InvalidDefault, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidDefaultBoolean(_default)); 790_element.AddError(ErrorCode.InvalidDefault, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidDefaultIntegral(_default, minValue, maxValue)); 797_element.AddError(ErrorCode.InvalidDefault, EdmSchemaErrorSeverity.Error, Strings.InvalidDefaultDateTime(_default, 806_element.AddError(ErrorCode.InvalidDefault, EdmSchemaErrorSeverity.Error, Strings.InvalidDefaultTime(_default, 815_element.AddError(ErrorCode.InvalidDefault, EdmSchemaErrorSeverity.Error, Strings.InvalidDefaultDateTimeOffset(_default, 827_element.AddError(ErrorCode.InvalidDefault, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidDefaultDecimal(_default, 38, 38)); 833_element.AddError(ErrorCode.InvalidDefault, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidDefaultFloatingPoint(_default, minValue, maxValue)); 839_element.AddError(ErrorCode.InvalidDefault, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidDefaultGuid(_default));
System\Data\EntityModel\SchemaObjectModel\Utils.cs (7)
114schema.AddError( ErrorCode.InvalidName, EdmSchemaErrorSeverity.Error, reader, 152schema.AddError(ErrorCode.InvalidName, EdmSchemaErrorSeverity.Error, reader, 183schema.AddError( ErrorCode.InvalidName, EdmSchemaErrorSeverity.Error, reader, 191schema.AddError( ErrorCode.InvalidName, EdmSchemaErrorSeverity.Error, reader, 250schema.AddError(ErrorCode.BoolValueExpected, EdmSchemaErrorSeverity.Error, reader, 276schema.AddError( ErrorCode.IntegerExpected, EdmSchemaErrorSeverity.Error, reader, 301schema.AddError( ErrorCode.ByteValueExpected, EdmSchemaErrorSeverity.Error, reader,
System\Data\EntityModel\SchemaObjectModel\ValidationHelper.cs (5)
49element.AddError(ErrorCode.FacetOnNonScalarType, EdmSchemaErrorSeverity.Error, Strings.FacetsOnNonScalarType(type.FQName)); 57element.AddError(ErrorCode.IncorrectlyPlacedFacet, EdmSchemaErrorSeverity.Error, Strings.FacetDeclarationRequiresTypeAttribute); 79element.AddError(ErrorCode.TypeNotDeclared, EdmSchemaErrorSeverity.Error, Strings.TypeMustBeDeclared); 85element.AddError(ErrorCode.TypeDeclaredAsAttributeAndElement, EdmSchemaErrorSeverity.Error, Strings.TypeDeclaredAsAttributeAndElement); 101element.AddError(ErrorCode.ReferenceToNonEntityType, EdmSchemaErrorSeverity.Error, Strings.ReferenceToNonEntityType(type.FQName));
System\Data\Mapping\FunctionImportMapping.cs (2)
238EdmSchemaErrorSeverity.Error, 253EdmSchemaErrorSeverity.Error,
System\Data\Mapping\StorageMappingItemCollection.cs (5)
220(int)StorageMappingErrorCode.MappingDifferentEdmStoreVersion, EdmSchemaErrorSeverity.Error)); 421EdmSchemaErrorSeverity.Warning)); 847(int)StorageMappingErrorCode.MappingDifferentMappingEdmStoreVersion, EdmSchemaErrorSeverity.Error)); 856EdmSchemaErrorSeverity.Error)); 901(int)StorageMappingErrorCode.ItemWithSameNameExistsBothInCSpaceAndSSpace, EdmSchemaErrorSeverity.Error));
System\Data\Mapping\StorageMappingItemLoader.cs (19)
219, (int)StorageMappingErrorCode.XmlSchemaParsingError, EdmSchemaErrorSeverity.Error, m_sourceLocation, xmlException.LineNumber, xmlException.LinePosition); 1371(int)StorageMappingErrorCode.QueryViewExistsForEntitySetAndType, EdmSchemaErrorSeverity.Error, m_sourceLocation, 1379(int)StorageMappingErrorCode.QueryViewExistsForEntitySetAndType, EdmSchemaErrorSeverity.Error, m_sourceLocation, 1431error.Severity = EdmSchemaErrorSeverity.Warning; 2459EdmSchemaErrorSeverity.Error, 2496EdmSchemaErrorSeverity.Error, 2515EdmSchemaErrorSeverity.Error, 2889EdmSchemaErrorSeverity.Error, 3386EdmSchemaError error = new EdmSchemaError(message, (int)errorCode, EdmSchemaErrorSeverity.Error, location, lineInfo.LineNumber, lineInfo.LinePosition); 3392EdmSchemaError error = new EdmSchemaError(messageFormat(errorMember), (int)errorCode, EdmSchemaErrorSeverity.Error, location, lineInfo.LineNumber, lineInfo.LinePosition); 3402, (int)errorCode, EdmSchemaErrorSeverity.Error, location, lineInfo.LineNumber, lineInfo.LinePosition); 3408EdmSchemaError error = new EdmSchemaError(errorMessage, (int)errorCode, EdmSchemaErrorSeverity.Error, location, lineInfo.LineNumber, lineInfo.LinePosition); 3578EdmSchemaErrorSeverity severity = EdmSchemaErrorSeverity.Error; 3580severity = EdmSchemaErrorSeverity.Warning; 3621(int)StorageMappingErrorCode.IncompatibleMemberMapping, EdmSchemaErrorSeverity.Error, 3644EdmSchemaErrorSeverity.Error, 3655(int)StorageMappingErrorCode.IncompatibleMemberMapping, EdmSchemaErrorSeverity.Error, 4080error.Severity = EdmSchemaErrorSeverity.Warning;
System\Data\Mapping\ViewGeneration\GeneratedView.cs (2)
98(int)StorageMappingErrorCode.InvalidQueryView, EdmSchemaErrorSeverity.Error, 119(int)StorageMappingErrorCode.InvalidQueryViewResultType, EdmSchemaErrorSeverity.Error,
System\Data\Mapping\ViewGeneration\Structures\ErrorLog.cs (1)
147m_mappingError = new EdmSchemaError(userMessage, (int)errorCode, EdmSchemaErrorSeverity.Error, sourceLocation,
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (1)
284EdmSchemaErrorSeverity.Error, containerMapping.SourceLocation, containerMapping.StartLineNumber,
System\Data\Mapping\ViewValidator.cs (6)
121EdmSchemaErrorSeverity.Error, _setMapping.EntityContainerMapping.SourceLocation, _setMapping.StartLineNumber, 134EdmSchemaErrorSeverity.Error, _setMapping.EntityContainerMapping.SourceLocation, _setMapping.StartLineNumber, 153EdmSchemaErrorSeverity.Error, _setMapping.EntityContainerMapping.SourceLocation, _setMapping.StartLineNumber, 216EdmSchemaErrorSeverity.Error, _setMapping.EntityContainerMapping.SourceLocation, _setMapping.StartLineNumber, 251EdmSchemaErrorSeverity.Error, _setMapping.EntityContainerMapping.SourceLocation, _setMapping.StartLineNumber, 326EdmSchemaErrorSeverity.Error, _setMapping.EntityContainerMapping.SourceLocation, _setMapping.StartLineNumber,
System\Data\Metadata\EdmItemCollection.cs (1)
340EdmSchemaErrorSeverity.Error));
System\Data\Metadata\EdmSchemaError.cs (12)
23private EdmSchemaErrorSeverity _severity = EdmSchemaErrorSeverity.Warning; 37internal EdmSchemaError(string message, int errorCode, EdmSchemaErrorSeverity severity) : 49internal EdmSchemaError(string message, int errorCode, EdmSchemaErrorSeverity severity, Exception exception) 64internal EdmSchemaError(string message, int errorCode, EdmSchemaErrorSeverity severity, string schemaLocation, int line, int column) 79internal EdmSchemaError(string message, int errorCode, EdmSchemaErrorSeverity severity, string schemaLocation, int line, int column, Exception exception) 82if (severity < EdmSchemaErrorSeverity.Warning || severity > EdmSchemaErrorSeverity.Error) 90private void Initialize(int errorCode, EdmSchemaErrorSeverity severity, string schemaLocation, int line, int column, Exception exception) 118case EdmSchemaErrorSeverity.Error: 121case EdmSchemaErrorSeverity.Warning: 166public EdmSchemaErrorSeverity Severity
System\Data\Metadata\StoreItemCollection.Loader.cs (11)
101private void OnProviderNotification(string provider, Action<string, ErrorCode, EdmSchemaErrorSeverity> addError) 127EdmSchemaErrorSeverity.Error); 130private void InitializeProviderManifest(Action<string, ErrorCode, EdmSchemaErrorSeverity> addError) 142addError(e.Message, ErrorCode.InvalidProvider, EdmSchemaErrorSeverity.Error); 159addError(Strings.OnlyStoreConnectionsSupported, ErrorCode.InvalidProvider, EdmSchemaErrorSeverity.Error); 177private void OnProviderManifestTokenNotification(string token, Action<string, ErrorCode, EdmSchemaErrorSeverity> addError) 190EdmSchemaErrorSeverity.Error); 194private DbProviderManifest OnProviderManifestNeeded(Action<string, ErrorCode, EdmSchemaErrorSeverity> addError) 200EdmSchemaErrorSeverity.Error); 205private void AddProviderIncompatibleError(ProviderIncompatibleException provEx, Action<string, ErrorCode, EdmSchemaErrorSeverity> addError) 218EdmSchemaErrorSeverity.Error);
System.Data.Entity.Design (83)
System\Data\Entity\Design\Common\MetadataUtil.cs (1)
81if (error.Severity != EdmSchemaErrorSeverity.Warning)
System\Data\Entity\Design\EntityCodeGenerator.cs (12)
90if (errors.Where(e => e.Severity == EdmSchemaErrorSeverity.Error).Any()) 128if (errors.Where(e => e.Severity == EdmSchemaErrorSeverity.Error).Any()) 176if (errors.Where(e => e.Severity == EdmSchemaErrorSeverity.Error).Any()) 237if (errors.Where(e => e.Severity == EdmSchemaErrorSeverity.Error).Any()) 252return new List<EdmSchemaError>() { new EdmSchemaError(Strings.EdmSchemaFileNotFound(sourceEdmSchemaFilePath), (int)ModelBuilderErrorCode.FileNotFound, EdmSchemaErrorSeverity.Error, sourceEdmSchemaFilePath, 0, 0) }; 317errorList.Add(new EdmSchemaError(Strings.DefaultTargetVersionTooLow(EntityFrameworkVersions.Default, targetFrameworkVersion), (int)ModelBuilderErrorCode.SchemaVersionHigherThanTargetVersion, EdmSchemaErrorSeverity.Warning)); 330errors.Add(new EdmSchemaError(Strings.EntityCodeGenTargetTooLow, (int)ModelBuilderErrorCode.TargetVersionNotSupported, EdmSchemaErrorSeverity.Error)); 402return new EdmSchemaError(Strings.EdmSchemaNotValid, (int)ModelBuilderErrorCode.SourceSchemaIsInvalid, EdmSchemaErrorSeverity.Error); 421if (textWriter.IsUserSuppliedTextWriter && !errors.Any(e => e.Severity == EdmSchemaErrorSeverity.Error)) 451EdmSchemaErrorSeverity severity = error.IsWarning ? EdmSchemaErrorSeverity.Warning : EdmSchemaErrorSeverity.Error;
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (5)
287internal void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, Exception e) 320session.AddError(Strings.UnableToGenerateForeignKeyPropertiesForV1, ModelBuilderErrorCode.UnableToGenerateForeignKeyPropertiesForV1, EdmSchemaErrorSeverity.Error, null); 343session.AddError(errorMessage, ModelBuilderErrorCode.UnsupportedForeinKeyPattern, EdmSchemaErrorSeverity.Error, null); 451EdmSchemaErrorSeverity.Error, 526ModelBuilderErrorCode.UnableToGenerateFunctionImportParameterName, EdmSchemaErrorSeverity.Warning, null);
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (21)
218EdmSchemaErrorSeverity.Error, 447if (error.Severity == EdmSchemaErrorSeverity.Error) 566EdmSchemaErrorSeverity.Warning)); 626EdmSchemaErrorSeverity.Warning)); 660EdmSchemaErrorSeverity.Warning)); 682EdmSchemaErrorSeverity.Warning)); 771session.AddErrorsForType(pkEntityType, new EdmSchemaError(Strings.UnsupportedDbRelationship(firstRow.RelationshipName), (int)ModelBuilderErrorCode.UnsupportedDbRelationship, EdmSchemaErrorSeverity.Warning)); 843EdmSchemaErrorSeverity.Warning)); 862EdmSchemaErrorSeverity.Warning)); 1021EdmSchemaErrorSeverity.Warning)); 1035EdmSchemaErrorSeverity.Warning)); 1174EdmSchemaErrorSeverity.Warning)); 1182EdmSchemaErrorSeverity.Warning)); 1207EdmSchemaErrorSeverity.Warning)); 1237EdmSchemaErrorSeverity.Warning)); 1245EdmSchemaErrorSeverity.Warning)); 1331errors.Add(new EdmSchemaError(message, (int)ModelBuilderErrorCode.UnsupportedType, EdmSchemaErrorSeverity.Warning)); 1359EdmSchemaErrorSeverity.Warning)); 1383EdmSchemaErrorSeverity.Warning)); 1412EdmSchemaErrorSeverity.Warning)); 1440EdmSchemaErrorSeverity.Warning));
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (1)
110EdmSchemaErrorSeverity.Error));
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (3)
255EdmSchemaErrorSeverity.Warning)); 317errorList.Add(new EdmSchemaError(Strings.DefaultTargetVersionTooLow(EntityFrameworkVersions.Default, targetFrameworkVersion), (int)System.Data.Entity.Design.SsdlGenerator.ModelBuilderErrorCode.SchemaVersionHigherThanTargetVersion, EdmSchemaErrorSeverity.Warning)); 354EdmSchemaErrorSeverity.Warning));
System\Data\Entity\Design\MetadataItemCollectionFactory.cs (3)
66if (!errors.Any(e => e.Severity == EdmSchemaErrorSeverity.Error)) 78errors.Add(new EdmSchemaError(Strings.TargetVersionSchemaVersionMismatch(maxExpectedVersion, actualVersion), (int)ModelBuilderErrorCode.SchemaVersionHigherThanTargetVersion, EdmSchemaErrorSeverity.Error)); 165if (!errors.Any(e => e.Severity == EdmSchemaErrorSeverity.Error))
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
176EdmSchemaErrorSeverity.Error, 279EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (15)
142AddError(ModelBuilderErrorCode.SecurityError, EdmSchemaErrorSeverity.Error, ex); 146AddError(ModelBuilderErrorCode.FileNotFound, EdmSchemaErrorSeverity.Error, ex); 150AddError(ModelBuilderErrorCode.SecurityError, EdmSchemaErrorSeverity.Error, ex); 154AddError(ModelBuilderErrorCode.DirectoryNotFound, EdmSchemaErrorSeverity.Error, ex); 158AddError(ModelBuilderErrorCode.IOException, EdmSchemaErrorSeverity.Error, ex); 207EdmSchemaErrorSeverity.Error, item.Identity); 235EdmSchemaErrorSeverity.Error, item.DeclaringType.FullName, item.Identity); 267EdmSchemaErrorSeverity.Error, new InvalidOperationException(Strings.EntitySetExistsWithDifferentCase(entitySet.Identity)), 362public void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity) 367public void AddError(ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, Exception ex) 372internal void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, Exception ex) 377internal void AddError(ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, Exception ex, string itemIdentity) 385internal void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, string itemIdentity) 393internal void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, string parentIdentity, string itemIdentity) 410if (error.Severity != EdmSchemaErrorSeverity.Warning)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (3)
188EdmSchemaErrorSeverity.Error); 362EdmSchemaErrorSeverity.Error, 381EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
149EdmSchemaErrorSeverity.Error, name);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (3)
117EdmSchemaErrorSeverity.Error, Item.DeclaringType.FullName, property.Name); 159EdmSchemaErrorSeverity.Error, 265EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
217EdmSchemaErrorSeverity.Error, 329EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (2)
57EdmSchemaErrorSeverity.Error, Item.DeclaringType.FullName, Item.Name); 64EdmSchemaErrorSeverity.Error, Item.DeclaringType.FullName, Item.Name);
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (3)
82EdmSchemaErrorSeverity.Error, 113EdmSchemaErrorSeverity.Error, 138EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
179EdmSchemaErrorSeverity.Error, Item.FullName);
System\Data\EntityModel\EntityClassGenerator.cs (5)
146EdmSchemaErrorSeverity.Error)); 337return new EdmSchemaError(exception.Message, (int)errorCode, EdmSchemaErrorSeverity.Error, sourceLocation, 0, 0, exception); 345return new EdmSchemaError(exception.Message, (int)errorCode, EdmSchemaErrorSeverity.Error, sourceLocation, 0, 0, exception); 352return new EdmSchemaError(exception.Message, (int)errorCode, EdmSchemaErrorSeverity.Error, null, 0, 0, exception); 359if (error.Severity != EdmSchemaErrorSeverity.Warning)
System.Data.Services.Design (30)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
111EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (12)
301AddError(ModelBuilderErrorCode.SecurityError, EdmSchemaErrorSeverity.Error, ex); 305AddError(ModelBuilderErrorCode.FileNotFound, EdmSchemaErrorSeverity.Error, ex); 309AddError(ModelBuilderErrorCode.SecurityError, EdmSchemaErrorSeverity.Error, ex); 313AddError(ModelBuilderErrorCode.DirectoryNotFound, EdmSchemaErrorSeverity.Error, ex); 317AddError(ModelBuilderErrorCode.IOException, EdmSchemaErrorSeverity.Error, ex); 365AddError(ModelBuilderErrorCode.IncompatibleSettingForCaseSensitiveOption, EdmSchemaErrorSeverity.Error, ex); 390AddError(ModelBuilderErrorCode.IncompatibleSettingForCaseSensitiveOption, EdmSchemaErrorSeverity.Error, 422AddError(ModelBuilderErrorCode.IncompatibleSettingForCaseSensitiveOption, EdmSchemaErrorSeverity.Error, 461public void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity) 465public void AddError(ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, Exception ex) 469internal void AddError(string message, ModelBuilderErrorCode errorCode, EdmSchemaErrorSeverity severity, Exception ex) 482if (error.Severity != EdmSchemaErrorSeverity.Warning)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (3)
154EdmSchemaErrorSeverity.Error); 523EdmSchemaErrorSeverity.Error, 542EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
198this.Generator.AddError(Strings.DuplicateClassName(type, name, cache[name]), ModelBuilderErrorCode.DuplicateClassName, EdmSchemaErrorSeverity.Error);
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (4)
155EdmSchemaErrorSeverity.Error, 197EdmSchemaErrorSeverity.Error, 247EdmSchemaErrorSeverity.Error, 266EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\Emitters\PropertyEmitter.cs (3)
213EdmSchemaErrorSeverity.Error, 353EdmSchemaErrorSeverity.Error, 393EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\Emitters\PropertyEmitterBase.cs (2)
54EdmSchemaErrorSeverity.Error); 61EdmSchemaErrorSeverity.Error);
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (3)
75EdmSchemaErrorSeverity.Error, 106EdmSchemaErrorSeverity.Error, 131EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
169EdmSchemaErrorSeverity.Error);