System\Data\EntityModel\SchemaObjectModel\EntityContainer.cs (6)
230AddError(ErrorCode.EntityContainerCannotExtendItself, EdmSchemaErrorSeverity.Error,
235AddError(ErrorCode.InvalidEntityContainerNameInExtends, EdmSchemaErrorSeverity.Error,
352schemaElement.AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error,
382AddError(ErrorCode.ConcurrencyRedefinedOnSubTypeOfEntitySetType,
410AddError(ErrorCode.SimilarRelationshipEnd,
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,
124AddError(ErrorCode.EntityKeyMustBeScalar,
142AddError(ErrorCode.EntityKeyTypeCurrentlyNotSupported,
155AddError(ErrorCode.EntityKeyTypeCurrentlyNotSupported,
System\Data\EntityModel\SchemaObjectModel\Function.cs (10)
426AddError(ErrorCode.ReturnTypeDeclaredAsAttributeAndElement, EdmSchemaErrorSeverity.Error, Strings.TypeDeclaredAsAttributeAndElement);
436AddError(ErrorCode.ComposableFunctionOrFunctionImportWithoutReturnType, EdmSchemaErrorSeverity.Error,
445AddError(ErrorCode.NonComposableFunctionWithReturnType, EdmSchemaErrorSeverity.Error,
459AddError(ErrorCode.InvalidNumberOfParametersForAggregateFunction,
470AddError(ErrorCode.InvalidParameterTypeForAggregateFunction,
485AddError(ErrorCode.NonComposableFunctionAttributesNotValid, EdmSchemaErrorSeverity.Error,
495AddError(ErrorCode.ComposableFunctionWithCommandText, EdmSchemaErrorSeverity.Error,
502AddError(ErrorCode.FunctionDeclaresCommandTextAndStoreFunctionName, EdmSchemaErrorSeverity.Error,
514AddError(ErrorCode.FunctionWithNonPrimitiveTypeNotSupported,
783AddError(ErrorCode.InvalidValueForParameterTypeSemantics, EdmSchemaErrorSeverity.Error, reader,
System\Data\EntityModel\SchemaObjectModel\FunctionImportElement.cs (10)
125owner.AddError(ErrorCode.FunctionImportUnknownEntitySet,
150this.AddError(ErrorCode.FunctionImportComposableAndSideEffectingNotAllowed,
161this.AddError(ErrorCode.FunctionImportCollectionAndRefParametersNotAllowed,
168this.AddError(ErrorCode.FunctionImportNonNullableParametersNotAllowed,
180owner.AddError(ErrorCode.FunctionImportUnsupportedReturnType,
229owner.AddError(ErrorCode.FunctionImportEntitySetAndEntitySetPathDeclared,
240owner.AddError(ErrorCode.FunctionImportReturnsEntitiesButDoesNotSpecifyEntitySet,
247owner.AddError(ErrorCode.FunctionImportEntityTypeDoesNotMatchEntitySet,
263ErrorCode.ComplexTypeAsReturnTypeAndDefinedEntitySet,
279owner.AddError(ErrorCode.FunctionImportSpecifiesEntitySetButDoesNotReturnEntityType,
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)
57AddError(ErrorCode.SameRoleReferredInReferentialConstraint,
84AddError(ErrorCode.InvalidPropertyInRelationshipConstraint,
113AddError(ErrorCode.InvalidMultiplicityInRoleInRelationshipConstraint,
121AddError(ErrorCode.InvalidMultiplicityInRoleInRelationshipConstraint,
140AddError(ErrorCode.InvalidMultiplicityInRoleInRelationshipConstraint,
150AddError(ErrorCode.InvalidMultiplicityInRoleInRelationshipConstraint,
161AddError(ErrorCode.InvalidPropertyInRelationshipConstraint,
174AddError(ErrorCode.InvalidMultiplicityInRoleInRelationshipConstraint,
183AddError(ErrorCode.InvalidMultiplicityInRoleInRelationshipConstraint,
190AddError(ErrorCode.MismatchNumberOfPropertiesInRelationshipConstraint,
200AddError(ErrorCode.TypeMismatchRelationshipConstaint,
System\Data\EntityModel\SchemaObjectModel\RelationshipEnd.cs (5)
97AddError(ErrorCode.InvalidRelationshipEndType, EdmSchemaErrorSeverity.Error,
110AddError(ErrorCode.EndWithManyMultiplicityCannotHaveOperationsSpecified,
121AddError(ErrorCode.EndWithoutMultiplicity,
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 (24)
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);
335AddError(ErrorCode.XmlError, severity, e.Exception.LineNumber, e.Exception.LinePosition, e.Message);
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 (6)
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; },
283(int)ErrorCode.CannotLoadDifferentVersionOfSchemaInTheSameItemCollection,
407internal DbProviderManifest GetProviderManifest(Action<string, ErrorCode, EdmSchemaErrorSeverity> addError)
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (23)
126_element.AddError(ErrorCode.ConstantFacetSpecifiedInSchema,
144_element.AddError(ErrorCode.RequiredFacetMissing, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.RequiredFacetMissing(
175_element.AddError(ErrorCode.FacetNotAllowedByType,
282_element.AddError(ErrorCode.FacetNotAllowedByType,
387_element.AddError(ErrorCode.PrecisionOutOfRange,
406_element.AddError(ErrorCode.ScaleOutOfRange,
418_element.AddError(ErrorCode.BadPrecisionAndScale, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.BadPrecisionAndScale(precision, scale));
444_element.AddError(ErrorCode.PrecisionOutOfRange,
487_element.AddError(ErrorCode.InvalidSize, EdmSchemaErrorSeverity.Error, System.Data.Entity.Strings.InvalidSize(length, minLength, maxLength, primitiveType.Name));
499_element.AddError(ErrorCode.FacetNotAllowedByType,
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\Metadata\StoreItemCollection.Loader.cs (11)
101private void OnProviderNotification(string provider, Action<string, ErrorCode, EdmSchemaErrorSeverity> addError)
126ErrorCode.InconsistentProvider,
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)
189ErrorCode.ProviderManifestTokenMismatch,
194private DbProviderManifest OnProviderManifestNeeded(Action<string, ErrorCode, EdmSchemaErrorSeverity> addError)
199ErrorCode.ProviderManifestTokenNotFound,
205private void AddProviderIncompatibleError(ProviderIncompatibleException provEx, Action<string, ErrorCode, EdmSchemaErrorSeverity> addError)
217ErrorCode.FailedToRetrieveProviderManifest,