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 (21)
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;
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));
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));
1172function.AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error,
1182function.AddError(ErrorCode.AlreadyDefined, EdmSchemaErrorSeverity.Error,
System\Data\EntityModel\SchemaObjectModel\SchemaElement.cs (7)
302AddError( ErrorCode.UnexpectedXmlNodeType, EdmSchemaErrorSeverity.Error, reader,
312AddError( ErrorCode.MalformedXml, EdmSchemaErrorSeverity.Error, 0, 0,
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\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 (15)
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,
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;
3621(int)StorageMappingErrorCode.IncompatibleMemberMapping, EdmSchemaErrorSeverity.Error,
3644EdmSchemaErrorSeverity.Error,
3655(int)StorageMappingErrorCode.IncompatibleMemberMapping, EdmSchemaErrorSeverity.Error,
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,