170 references to StorageMappingErrorCode
System.Data.Entity (170)
System\Data\Mapping\FunctionImportMapping.cs (2)
237
(int)
StorageMappingErrorCode
.MappingFunctionImportAmbiguousTypeConditions,
252
(int)
StorageMappingErrorCode
.MappingFunctionImportAmbiguousTypeConditions,
System\Data\Mapping\StorageMappingItemCollection.cs (6)
220
(int)
StorageMappingErrorCode
.MappingDifferentEdmStoreVersion, EdmSchemaErrorSeverity.Error));
417
Debug.Assert(2088 == (int)
StorageMappingErrorCode
.MappingAllQueryViewAtCompileTime, "Please change the ERRORCODE_MAPPINGALLQUERYVIEWATCOMPILETIME value as well");
420
(int)
StorageMappingErrorCode
.MappingAllQueryViewAtCompileTime,
847
(int)
StorageMappingErrorCode
.MappingDifferentMappingEdmStoreVersion, EdmSchemaErrorSeverity.Error));
855
(int)
StorageMappingErrorCode
.CannotLoadDifferentVersionOfSchemaInTheSameItemCollection,
901
(int)
StorageMappingErrorCode
.ItemWithSameNameExistsBothInCSpaceAndSSpace, EdmSchemaErrorSeverity.Error));
System\Data\Mapping\StorageMappingItemLoader.cs (154)
219
, (int)
StorageMappingErrorCode
.XmlSchemaParsingError, EdmSchemaErrorSeverity.Error, m_sourceLocation, xmlException.LineNumber, xmlException.LinePosition);
238
StorageMappingErrorCode
.RootMappingElementMissing,
342
StorageMappingErrorCode
.StorageEntityContainerNameMismatchWhileSpecifyingPartialMapping,
355
StorageMappingErrorCode
.AlreadyMappedStorageEntityContainer, m_sourceLocation, navLineInfo, m_parsingErrors);
364
entityContainerName,
StorageMappingErrorCode
.InvalidEntityContainer, m_sourceLocation,
372
StorageMappingErrorCode
.InvalidEntityContainer, m_sourceLocation, navLineInfo, m_parsingErrors);
430
StorageMappingErrorCode
.SetMappingExpected, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
440
entityContainerMapping.EdmEntityContainer.Name,
StorageMappingErrorCode
.EmptyContainerMapping,
521
StorageMappingErrorCode
.InvalidModificationFunctionMappingAssociationSetNotMappedForOperation,
538
StorageMappingErrorCode
.InvalidModificationFunctionMappingAssociationEndMappingInvalidForEntityType,
597
StringUtil.ToCommaSeparatedString(violationNames),
StorageMappingErrorCode
.AmbiguousModificationFunctionMappingForAssociationSet,
669
StorageMappingErrorCode
.MissingSetClosureInModificationFunctionMapping, m_sourceLocation, (IXmlLineInfo)nav
776
StorageMappingErrorCode
.MissingSetClosureInQueryViews, m_sourceLocation, (IXmlLineInfo)nav
816
StorageMappingErrorCode
.InvalidEntitySet, m_sourceLocation, navLineInfo, m_parsingErrors);
856
StorageMappingErrorCode
.TableNameAttributeWithQueryView, m_sourceLocation, navLineInfo, m_parsingErrors);
870
StorageMappingErrorCode
.InvalidContent, m_sourceLocation, navLineInfo, m_parsingErrors);
886
StorageMappingErrorCode
.EmptySetMapping, m_sourceLocation, navLineInfo, m_parsingErrors);
919
StorageMappingErrorCode
.MissingModificationFunctionMappingForEntityType, m_sourceLocation, (IXmlLineInfo)nav
952
StorageMappingErrorCode
.InvalidEntityType, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
971
StorageMappingErrorCode
.InvalidEntityType, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
980
StorageMappingErrorCode
.InvalidEntityType, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
995
StorageMappingErrorCode
.MappingOfAbstractType, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
1002
StorageMappingErrorCode
.MappingOfAbstractType, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
1077
StorageMappingErrorCode
.TableMappingFragmentExpected, m_sourceLocation, xmlLineInfoNav
1087
StorageMappingErrorCode
.DistinctFragmentInReadWriteContainer, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
1106
StorageMappingErrorCode
.InvalidTableNameAttributeWithModificationFunctionMapping,
1114
StorageMappingErrorCode
.DistinctFragmentInReadWriteContainer, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
1146
StorageMappingErrorCode
.InvalidModificationFunctionMappingForMultipleTypes,
1155
StorageMappingErrorCode
.MappingOfAbstractType, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
1165
entityType.Name,
StorageMappingErrorCode
.RedundantEntityTypeMappingInModificationFunctionMapping, m_sourceLocation, xmlLineInfoNav
1230
StorageMappingErrorCode
.InvalidModificationFunctionMappingMultipleEndsOfAssociationMapped, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
1270
setMapping.Set.Name,
StorageMappingErrorCode
.TypeNameForFirstQueryView,
1278
setMapping.Set.Name,
StorageMappingErrorCode
.EmptyQueryView,
1292
setMapping.Set.Name,
StorageMappingErrorCode
.NoTypeNameForTypeSpecificQueryView,
1327
StorageMappingErrorCode
.TypeNameContainsMultipleTypesForQueryView, m_sourceLocation, (IXmlLineInfo)nav, m_parsingErrors);
1335
StorageMappingErrorCode
.IsTypeOfQueryViewForBaseType, m_sourceLocation, (IXmlLineInfo)nav, m_parsingErrors);
1344
entityType.Name, setMapping.Set.Name,
StorageMappingErrorCode
.EmptyQueryView,
1351
setMapping.Set.Name, entityType.Name,
StorageMappingErrorCode
.EmptyQueryView,
1371
(int)
StorageMappingErrorCode
.QueryViewExistsForEntitySetAndType, EdmSchemaErrorSeverity.Error, m_sourceLocation,
1379
(int)
StorageMappingErrorCode
.QueryViewExistsForEntitySetAndType, EdmSchemaErrorSeverity.Error, m_sourceLocation,
1417
StorageMappingErrorCode
.InvalidAssociationSet, m_sourceLocation, navLineInfo, m_parsingErrors);
1429
StorageMappingErrorCode
.InvalidAssociationSet, m_sourceLocation, navLineInfo, m_parsingErrors);
1436
StorageMappingErrorCode
.InvalidAssociationSet, m_sourceLocation, navLineInfo, m_parsingErrors);
1446
StorageMappingErrorCode
.DuplicateSetMapping, m_sourceLocation, navLineInfo, m_parsingErrors);
1461
StorageMappingErrorCode
.EmptySetMapping, m_sourceLocation, navLineInfo, m_parsingErrors);
1473
StorageMappingErrorCode
.TableNameAttributeWithQueryView, m_sourceLocation, navLineInfo, m_parsingErrors);
1496
StorageMappingErrorCode
.InvalidAssociationType, m_sourceLocation, navLineInfo, m_parsingErrors);
1505
StorageMappingErrorCode
.InvalidContent, m_sourceLocation, navLineInfo, m_parsingErrors);
1544
StorageMappingErrorCode
.MappingFunctionImportTargetFunctionMustBeNonComposable,
1551
StorageMappingErrorCode
.MappingFunctionImportTargetFunctionMustBeComposable,
1580
StorageMappingErrorCode
.FunctionResultMappingCountMismatch, m_sourceLocation, lineInfo, m_parsingErrors);
1598
StorageMappingErrorCode
.MappingFunctionImportTVFExpected, m_sourceLocation, lineInfo, m_parsingErrors);
1673
functionImport.Identity,
StorageMappingErrorCode
.MappingOfAbstractType, m_sourceLocation, lineInfo, m_parsingErrors);
1695
StorageMappingErrorCode
.MappingFunctionImportStoreFunctionDoesNotExist,
1702
StorageMappingErrorCode
.MappingFunctionImportStoreFunctionAmbiguous,
1736
StorageMappingErrorCode
.MappingFunctionImportFunctionImportDoesNotExist,
1746
StorageMappingErrorCode
.MappingFunctionImportFunctionImportMappedMultipleTimes,
1764
StorageMappingErrorCode
.MappingFunctionImportTargetParameterHasNoCorrespondingImportParameter,
1773
StorageMappingErrorCode
.MappingFunctionImportIncompatibleParameterMode,
1790
StorageMappingErrorCode
.MappingStoreProviderReturnsNullEdmType,
1813
StorageMappingErrorCode
.MappingFunctionImportIncompatibleParameterType,
1826
StorageMappingErrorCode
.MappingFunctionImportImportParameterHasNoCorrespondingTargetParameter,
1859
StorageMappingErrorCode
.MappingFunctionImportEntityTypeMappingForFunctionNotReturningEntitySet,
1879
StorageMappingErrorCode
.MappingFunctionImportUnexpectedEntityTypeMapping,
1899
StorageMappingErrorCode
.MappingFunctionImportUnexpectedComplexTypeMapping,
1945
StorageMappingErrorCode
.InvalidComplexType, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
1954
StorageMappingErrorCode
.InvalidComplexType, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
2036
StorageMappingErrorCode
.ConditionError,
2059
StorageMappingErrorCode
.InvalidEdmMember,
2068
StorageMappingErrorCode
.DuplicateMemberMapping,
2100
StorageMappingErrorCode
.MappingOfAbstractType, m_sourceLocation, lineInfo, m_parsingErrors);
2162
StorageMappingErrorCode
.MappingFunctionImportCannotInferTargetFunctionKeys, m_sourceLocation, lineInfo, m_parsingErrors);
2273
StorageMappingErrorCode
.MappingFunctionImportScalarMappingToMulticolumnTVF, m_sourceLocation, lineInfo, m_parsingErrors);
2286
StorageMappingErrorCode
.MappingFunctionImportScalarMappingTypeMismatch, m_sourceLocation, lineInfo, m_parsingErrors);
2328
StorageMappingErrorCode
.ConditionError, m_sourceLocation, lineInfo, m_parsingErrors);
2333
StorageMappingErrorCode
.ConditionError, m_sourceLocation, lineInfo, m_parsingErrors);
2403
StorageMappingErrorCode
.ConditionError,
2410
StorageMappingErrorCode
.ConditionError,
2426
StorageMappingErrorCode
.InvalidStorageMember,
2458
(int)
StorageMappingErrorCode
.InvalidTypeInScalarProperty,
2495
(int)
StorageMappingErrorCode
.IncompatibleMemberMapping,
2507
StorageMappingErrorCode
.InvalidStorageMember,
2514
(int)
StorageMappingErrorCode
.MappingFunctionImportReturnTypePropertyNotMapped,
2555
StorageMappingErrorCode
.InvalidAssociationType, m_sourceLocation, navLineInfo, m_parsingErrors);
2565
StorageMappingErrorCode
.DuplicateTypeMapping, m_sourceLocation, navLineInfo, m_parsingErrors);
2576
AddToSchemaErrors(Strings.Mapping_InvalidContent_Table_Expected,
StorageMappingErrorCode
.InvalidTable,
2645
StorageMappingErrorCode
.PropertyMapsWithQueryView, m_sourceLocation, navLineInfo, m_parsingErrors);
2656
StorageMappingErrorCode
.InvalidTable, m_sourceLocation, navLineInfo, m_parsingErrors);
2708
StorageMappingErrorCode
.ConditionError,
2715
StorageMappingErrorCode
.InvalidContent, m_sourceLocation, navLineInfo, m_parsingErrors);
2751
StorageMappingErrorCode
.InvalidTable, m_sourceLocation, navLineInfo, m_parsingErrors);
2773
StorageMappingErrorCode
.PropertyMapsWithQueryView, m_sourceLocation, navLineInfo, m_parsingErrors);
2784
StorageMappingErrorCode
.InvalidEdmMember, m_sourceLocation, navLineInfo, m_parsingErrors);
2794
StorageMappingErrorCode
.PropertyMapsWithQueryView, m_sourceLocation, navLineInfo, m_parsingErrors);
2806
StorageMappingErrorCode
.ConditionError,
2817
StorageMappingErrorCode
.InvalidContent, m_sourceLocation, navLineInfo, m_parsingErrors);
2863
StorageMappingErrorCode
.InvalidEdmMember, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
2875
StorageMappingErrorCode
.InvalidStorageMember, m_sourceLocation, xmlLineInfoNav, m_parsingErrors);
2888
(int)
StorageMappingErrorCode
.InvalidTypeInScalarProperty,
2932
StorageMappingErrorCode
.InvalidEdmMember, m_sourceLocation, navLineInfo, m_parsingErrors);
2939
StorageMappingErrorCode
.InvalidEdmMember, m_sourceLocation, navLineInfo, m_parsingErrors);
2959
StorageMappingErrorCode
.InvalidEdmMember, m_sourceLocation, navLineInfo, m_parsingErrors);
2967
StorageMappingErrorCode
.InvalidComplexType, m_sourceLocation, navLineInfo, m_parsingErrors);
3056
StorageMappingErrorCode
.InvalidComplexType, m_sourceLocation, (IXmlLineInfo)nav, m_parsingErrors);
3107
StorageMappingErrorCode
.ConditionError,
3157
StorageMappingErrorCode
.InvalidEdmMember, m_sourceLocation, navLineInfo, m_parsingErrors);
3193
StorageMappingErrorCode
.ConditionError, m_sourceLocation, navLineInfo, m_parsingErrors);
3199
StorageMappingErrorCode
.ConditionError, m_sourceLocation, navLineInfo, m_parsingErrors);
3228
StorageMappingErrorCode
.ConditionError, m_sourceLocation, navLineInfo, m_parsingErrors);
3250
StorageMappingErrorCode
.MappingStoreProviderReturnsNullEdmType,
3267
conditionMember.Name, edmType.FullName,
StorageMappingErrorCode
.ConditionError,
3288
StorageMappingErrorCode
.ConditionError, m_sourceLocation, navLineInfo, m_parsingErrors);
3296
StorageMappingErrorCode
.ConditionError, m_sourceLocation, navLineInfo, m_parsingErrors);
3302
StorageMappingErrorCode
.ConditionError, m_sourceLocation, navLineInfo, m_parsingErrors);
3316
StorageMappingErrorCode
.ConditionError, m_sourceLocation, navLineInfo, m_parsingErrors);
3384
private static void AddToSchemaErrors(string message,
StorageMappingErrorCode
errorCode, string location, IXmlLineInfo lineInfo, IList<EdmSchemaError> parsingErrors)
3390
private static EdmSchemaError AddToSchemaErrorsWithMemberInfo(Func<object, string> messageFormat, string errorMember,
StorageMappingErrorCode
errorCode, string location, IXmlLineInfo lineInfo, IList<EdmSchemaError> parsingErrors)
3398
string errorStructure,
StorageMappingErrorCode
errorCode, string location, IXmlLineInfo lineInfo, IList<EdmSchemaError> parsingErrors)
3406
private static void AddToSchemaErrorWithMessage(string errorMessage,
StorageMappingErrorCode
errorCode, string location, IXmlLineInfo lineInfo, IList<EdmSchemaError> parsingErrors)
3474
StorageMappingErrorCode
.ConditionError, sourceLocation, (IXmlLineInfo)nav, parsingErrors);
3497
StorageMappingErrorCode
.InvalidEnumValue, sourceLocation, xmlLineInfoNav, parsingErrors);
3505
StorageMappingErrorCode
.InvalidEnumValue, sourceLocation, xmlLineInfoNav, parsingErrors);
3582
, (int)
StorageMappingErrorCode
.XmlSchemaValidationError, severity, sourceLocation, args.Exception.LineNumber, args.Exception.LinePosition);
3621
(int)
StorageMappingErrorCode
.IncompatibleMemberMapping, EdmSchemaErrorSeverity.Error,
3643
(int)
StorageMappingErrorCode
.CSpaceMemberMappedToMultipleSSpaceMemberWithDifferentTypes,
3655
(int)
StorageMappingErrorCode
.IncompatibleMemberMapping, EdmSchemaErrorSeverity.Error,
3841
StorageMappingErrorCode
.InvalidEdmMember, m_parentLoader.m_sourceLocation,
3867
StorageMappingErrorCode
.AmbiguousResultBindingInModificationFunctionMapping,
3897
StorageMappingErrorCode
.InvalidParameterInModificationFunctionMapping,
4014
associationSetName,
StorageMappingErrorCode
.InvalidAssociationSet,
4028
fromRole,
StorageMappingErrorCode
.InvalidAssociationSetRoleInModificationFunctionMapping,
4040
toRole,
StorageMappingErrorCode
.InvalidAssociationSetRoleInModificationFunctionMapping,
4050
fromRole,
StorageMappingErrorCode
.InvalidAssociationSetRoleInModificationFunctionMapping,
4061
toRole,
StorageMappingErrorCode
.InvalidAssociationSetCardinalityInModificationFunctionMapping,
4073
toRole,
StorageMappingErrorCode
.InvalidModificationFunctionMappingAssociationEndForeignKey, m_parentLoader.m_sourceLocation,
4103
role,
StorageMappingErrorCode
.InvalidAssociationSetRoleInModificationFunctionMapping,
4130
propertyName, type.Name,
StorageMappingErrorCode
.InvalidEdmMember,
4142
typeName,
StorageMappingErrorCode
.InvalidComplexType,
4153
typeName, property.Name,
StorageMappingErrorCode
.InvalidComplexType,
4188
StorageMappingErrorCode
.MissingVersionInModificationFunctionMapping, m_parentLoader.m_sourceLocation,
4204
StorageMappingErrorCode
.InvalidVersionInModificationFunctionMapping,
4214
StorageMappingErrorCode
.InvalidVersionInModificationFunctionMapping,
4229
StorageMappingErrorCode
.InvalidParameterInModificationFunctionMapping,
4244
StorageMappingErrorCode
.InvalidEdmMember,
4258
StorageMappingErrorCode
.InvalidEdmMember,
4269
parameterName,
StorageMappingErrorCode
.ParameterBoundTwiceInModificationFunctionMapping,
4295
StorageMappingErrorCode
.InvalidModificationFunctionMappingPropertyParameterTypeMismatch,
4357
StorageMappingErrorCode
.InvalidModificationFunctionMappingUnknownFunction, m_parentLoader.m_sourceLocation,
4365
StorageMappingErrorCode
.InvalidModificationFunctionMappingAmbiguousFunction, m_parentLoader.m_sourceLocation,
4376
StorageMappingErrorCode
.InvalidModificationFunctionMappingNotValidFunction, m_parentLoader.m_sourceLocation,
4390
StorageMappingErrorCode
.MappingFunctionImportRowsAffectedParameterDoesNotExist,
4399
StorageMappingErrorCode
.MappingFunctionImportRowsAffectedParameterHasWrongMode,
4410
StorageMappingErrorCode
.MappingFunctionImportRowsAffectedParameterHasWrongType,
4423
parameter.Name, StorageMslConstructs.RowsAffectedParameterAttribute),
StorageMappingErrorCode
.InvalidModificationFunctionMappingNotValidFunctionParameter,
System\Data\Mapping\ViewGeneration\GeneratedView.cs (2)
98
(int)
StorageMappingErrorCode
.InvalidQueryView, EdmSchemaErrorSeverity.Error,
119
(int)
StorageMappingErrorCode
.InvalidQueryViewResultType, EdmSchemaErrorSeverity.Error,
System\Data\Mapping\ViewValidator.cs (6)
120
_setMapping.Set.Name, elementString, expressionKind), (int)
StorageMappingErrorCode
.MappingUnsupportedExpressionKindQueryView,
133
_setMapping.Set.Name, expression.Property.Name, expression.Property.BuiltInTypeKind), (int)
StorageMappingErrorCode
.MappingUnsupportedPropertyKindQueryView,
152
_setMapping.Set.Name, type.FullName), (int)
StorageMappingErrorCode
.MappingUnsupportedInitializationQueryView,
215
_setMapping.Set.Name, expression.Function.Identity), (int)
StorageMappingErrorCode
.UnsupportedFunctionCallInQueryView,
250
_setMapping.Set.Name, target.Name), (int)
StorageMappingErrorCode
.MappingUnsupportedScanTargetQueryView,
325
setInfo.EntitySet.Name, declaredSet.Name, setEnd.Name, _setMapping.Set.Name), (int)
StorageMappingErrorCode
.MappingUnsupportedInitializationQueryView,