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\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\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\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\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\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\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\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\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\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\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\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\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);