//---------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
namespace System.Data.Mapping
{
// This file contains an enum for the errors generated by StorageMappingItemCollection
// There is almost a one-to-one correspondence between these error codes
// and the resource strings - so if you need more insight into what the
// error code means, please see the code that uses the particular enum
// AND the corresponding resource string
// error numbers end up being hard coded in test cases; they can be removed, but should not be changed.
// reusing error numbers is probably OK, but not recommended.
//
// The acceptable range for this enum is
// 2000 - 2999
//
// The Range 10,000-15,000 is reserved for tools
//
internal enum StorageMappingErrorCode
{
///
/// StorageMappingErrorBase
///
Value = 2000,
///
/// Invalid Content
///
InvalidContent = Value + 1,
///
/// Unresolvable Entity Container Name
///
InvalidEntityContainer = Value + 2,
///
/// Unresolvable Entity Set Name
///
InvalidEntitySet = Value + 3,
///
/// Unresolvable Entity Type Name
///
InvalidEntityType = Value + 4,
///
/// Unresolvable Association Set Name
///
InvalidAssociationSet = Value + 5,
///
/// Unresolvable Association Type Name
///
InvalidAssociationType = Value + 6,
///
/// Unresolvable Table Name
///
InvalidTable = Value + 7,
///
/// Unresolvable Complex Type Name
///
InvalidComplexType = Value + 8,
///
/// Unresolvable Edm Member Name
///
InvalidEdmMember = Value + 9,
///
/// Unresolvable Storage Member Name
///
InvalidStorageMember = Value + 10,
///
/// TableMappingFragment element expected
///
TableMappingFragmentExpected = Value + 11,
///
/// SetMappingFragment element expected
///
SetMappingExpected = Value + 12,
// Unused: 13
///
/// Duplicate Set Map
///
DuplicateSetMapping = Value + 14,
///
/// Duplicate Type Map
///
DuplicateTypeMapping = Value + 15,
///
/// Condition Error
///
ConditionError = Value + 16,
// Unused: 17
///
/// Root Mapping Element missing
///
RootMappingElementMissing = Value + 18,
///
/// Incompatible member map
///
IncompatibleMemberMapping = Value + 19,
// Unused: 20
// Unused: 21
// Unused: 22
///
/// Invalid Enum Value
///
InvalidEnumValue = Value + 23,
///
/// Xml Schema Validation error
///
XmlSchemaParsingError = Value + 24,
///
/// Xml Schema Validation error
///
XmlSchemaValidationError = Value + 25,
///
/// Ambiguous Modification Function Mapping For AssociationSet
///
AmbiguousModificationFunctionMappingForAssociationSet = Value + 26,
///
/// Missing Set Closure In Modification Function Mapping
///
MissingSetClosureInModificationFunctionMapping = Value + 27,
///
/// Missing Modification Function Mapping For Entity Type
///
MissingModificationFunctionMappingForEntityType = Value + 28,
///
/// Invalid Table Name Attribute With Modification Function Mapping
///
InvalidTableNameAttributeWithModificationFunctionMapping = Value + 29,
///
/// Invalid Modification Function Mapping For Multiple Types
///
InvalidModificationFunctionMappingForMultipleTypes = Value + 30,
///
/// Ambiguous Result Binding In Modification Function Mapping
///
AmbiguousResultBindingInModificationFunctionMapping = Value + 31,
///
/// Invalid Association Set Role In Modification Function Mapping
///
InvalidAssociationSetRoleInModificationFunctionMapping = Value + 32,
///
/// Invalid Association Set Cardinality In Modification Function Mapping
///
InvalidAssociationSetCardinalityInModificationFunctionMapping = Value + 33,
///
/// Redundant Entity Type Mapping In Modification Function Mapping
///
RedundantEntityTypeMappingInModificationFunctionMapping = Value + 34,
///
/// Missing Version In Modification Function Mapping
///
MissingVersionInModificationFunctionMapping = Value + 35,
///
/// Invalid Version In Modification Function Mapping
///
InvalidVersionInModificationFunctionMapping = Value + 36,
///
/// Invalid Parameter In Modification Function Mapping
///
InvalidParameterInModificationFunctionMapping = Value + 37,
///
/// Parameter Bound Twice In Modification Function Mapping
///
ParameterBoundTwiceInModificationFunctionMapping = Value + 38,
///
/// Same CSpace member mapped to multiple SSpace members with different types
///
CSpaceMemberMappedToMultipleSSpaceMemberWithDifferentTypes = Value + 39,
///
/// No store type found for the given CSpace type (these error message is for primitive type with no facets)
///
NoEquivalentStorePrimitiveTypeFound = Value + 40,
///
/// No Store type found for the given CSpace type with the given set of facets
///
NoEquivalentStorePrimitiveTypeWithFacetsFound = Value + 41,
///
/// While mapping functions, if the property type is not compatible with the function parameter
///
InvalidModificationFunctionMappingPropertyParameterTypeMismatch = Value + 42,
///
/// While mapping functions, if more than one end of association is mapped
///
InvalidModificationFunctionMappingMultipleEndsOfAssociationMapped = Value + 43,
///
/// While mapping functions, if we find an unknown function
///
InvalidModificationFunctionMappingUnknownFunction = Value + 44,
///
/// While mapping functions, if we find an ambiguous function
///
InvalidModificationFunctionMappingAmbiguousFunction = Value + 45,
///
/// While mapping functions, if we find an invalid function
///
InvalidModificationFunctionMappingNotValidFunction = Value + 46,
///
/// While mapping functions, if we find an invalid function parameter
///
InvalidModificationFunctionMappingNotValidFunctionParameter = Value + 47,
///
/// Association set function mappings are not consistently defined for different operations
///
InvalidModificationFunctionMappingAssociationSetNotMappedForOperation = Value + 48,
///
/// Entity type function mapping includes association end but the type is not part of the association
///
InvalidModificationFunctionMappingAssociationEndMappingInvalidForEntityType = Value + 49,
///
/// Function import mapping references non-existent store function
///
MappingFunctionImportStoreFunctionDoesNotExist = Value + 50,
///
/// Function import mapping references store function with overloads (overload resolution is not possible)
///
MappingFunctionImportStoreFunctionAmbiguous = Value + 51,
///
/// Function import mapping reference non-existent import
///
MappingFunctionImportFunctionImportDoesNotExist = Value + 52,
///
/// Function import mapping is mapped in several locations
///
MappingFunctionImportFunctionImportMappedMultipleTimes = Value + 53,
///
/// Attempting to map non-composable function import to a composable function.
///
MappingFunctionImportTargetFunctionMustBeNonComposable = Value + 54,
///
/// No parameter on import side corresponding to target parameter
///
MappingFunctionImportTargetParameterHasNoCorrespondingImportParameter = Value + 55,
///
/// No parameter on target side corresponding to import parameter
///
MappingFunctionImportImportParameterHasNoCorrespondingTargetParameter = Value + 56,
///
/// Parameter directions are different
///
MappingFunctionImportIncompatibleParameterMode = Value + 57,
///
/// Parameter types are different
///
MappingFunctionImportIncompatibleParameterType = Value + 58,
///
/// Rows affected parameter does not exist on mapped function
///
MappingFunctionImportRowsAffectedParameterDoesNotExist = Value + 59,
///
/// Rows affected parameter does not Int32
///
MappingFunctionImportRowsAffectedParameterHasWrongType = Value + 60,
///
/// Rows affected does not have 'out' mode
///
MappingFunctionImportRowsAffectedParameterHasWrongMode = Value + 61,
///
/// Empty Container Mapping
///
EmptyContainerMapping = Value + 62,
///
/// Empty Set Mapping
///
EmptySetMapping = Value + 63,
///
/// Both TableName Attribute on Set Mapping and QueryView specified
///
TableNameAttributeWithQueryView = Value + 64,
///
/// Empty Query View
///
EmptyQueryView = Value + 65,
///
/// Both Query View and Property Maps specified for EntitySet
///
PropertyMapsWithQueryView = Value + 66,
///
/// Some sets in the graph missing Query Views
///
MissingSetClosureInQueryViews = Value + 67,
///
/// Invalid Query View
///
InvalidQueryView = Value + 68,
///
/// Invalid result type for query view
///
InvalidQueryViewResultType = Value + 69,
///
/// Item with same name exists both in CSpace and SSpace
///
ItemWithSameNameExistsBothInCSpaceAndSSpace = Value + 70,
///
/// Unsupported expression kind in query view
///
MappingUnsupportedExpressionKindQueryView = Value + 71,
///
/// Non S-space target in query view
///
MappingUnsupportedScanTargetQueryView = Value + 72,
///
/// Non structural property referenced in query view
///
MappingUnsupportedPropertyKindQueryView = Value + 73,
///
/// Initialization non-target type in query view
///
MappingUnsupportedInitializationQueryView = Value + 74,
///
/// EntityType mapping for non-entity set function
///
MappingFunctionImportEntityTypeMappingForFunctionNotReturningEntitySet = Value + 75,
///
/// FunctionImport ambiguous type mappings
///
MappingFunctionImportAmbiguousTypeConditions = Value + 76,
// MappingFunctionMultipleTypeConditionsForOneColumn = Value + 77,
///
/// Abstract type being mapped explicitly - not supported.
///
MappingOfAbstractType = Value + 78,
///
/// Storage EntityContainer Name mismatch while specifying partial mapping
///
StorageEntityContainerNameMismatchWhileSpecifyingPartialMapping = Value + 79,
///
/// TypeName attribute specified for First QueryView
///
TypeNameForFirstQueryView = Value + 80,
///
/// No TypeName attribute is specified for type-specific QueryViews
///
NoTypeNameForTypeSpecificQueryView = Value + 81,
///
/// Multiple (optype/oftypeonly) QueryViews have been defined for the same EntitySet/EntityType
///
QueryViewExistsForEntitySetAndType = Value + 82,
///
/// TypeName Contains Multiple Types For QueryView
///
TypeNameContainsMultipleTypesForQueryView = Value + 83,
///
/// IsTypeOf QueryView is specified for base type
///
IsTypeOfQueryViewForBaseType = Value + 84,
///
/// ScalarProperty Element contains invalid type
///
InvalidTypeInScalarProperty = Value + 85,
///
/// Already Mapped Storage Container
///
AlreadyMappedStorageEntityContainer = Value + 86,
///
/// No query view is allowed at compile time in EntityContainerMapping
///
UnsupportedQueryViewInEntityContainerMapping = Value + 87,
///
/// EntityContainerMapping only contains query view
///
MappingAllQueryViewAtCompileTime = Value + 88,
///
/// No views can be generated since all of the EntityContainerMapping contain query view
///
MappingNoViewsCanBeGenerated = Value + 89,
///
/// The store provider returns null EdmType for the given targetParameter's type
///
MappingStoreProviderReturnsNullEdmType = Value + 90,
// MappingFunctionImportInvalidMemberName = Value + 91,
///
/// Multiple mappings of the same Member or Property inside the same mapping fragment.
///
DuplicateMemberMapping = Value + 92,
///
/// Entity type mapping for a function import that does not return a collection of entity type.
///
MappingFunctionImportUnexpectedEntityTypeMapping = Value + 93,
///
/// Complex type mapping for a function import that does not return a collection of complex type.
///
MappingFunctionImportUnexpectedComplexTypeMapping = Value + 94,
///
/// Distinct flag can only be placed in a container that is not read-write
///
DistinctFragmentInReadWriteContainer = Value + 96,
///
/// The EntitySet used in creating the Ref and the EntitySet declared in AssociationSetEnd do not match
///
EntitySetMismatchOnAssociationSetEnd = Value + 97,
///
/// FKs not permitted for function association ends.
///
InvalidModificationFunctionMappingAssociationEndForeignKey = Value + 98,
// EdmItemCollectionVersionIncompatible = Value + 98,
// StoreItemCollectionVersionIncompatible = Value + 99,
///
/// Cannot load different version of schemas in the same ItemCollection
///
CannotLoadDifferentVersionOfSchemaInTheSameItemCollection = Value + 100,
MappingDifferentMappingEdmStoreVersion = Value + 101,
MappingDifferentEdmStoreVersion = Value + 102,
///
/// All function imports must be mapped.
///
UnmappedFunctionImport = Value + 103,
///
/// Invalid function import result mapping: return type property not mapped.
///
MappingFunctionImportReturnTypePropertyNotMapped = Value + 104,
// AmbiguousFunction = Value + 105,
///
/// Unresolvable Type Name
///
InvalidType = Value + 106,
// FunctionResultMappingTypeMismatch = Value + 107,
///
/// TVF expected on the store side.
///
MappingFunctionImportTVFExpected = Value + 108,
///
/// Collection(Scalar) function import return type is not compatible with the TVF column type.
///
MappingFunctionImportScalarMappingTypeMismatch = Value + 109,
///
/// Collection(Scalar) function import must be mapped to a TVF returning a single column.
///
MappingFunctionImportScalarMappingToMulticolumnTVF = Value + 110,
///
/// Attempting to map composable function import to a non-composable function.
///
MappingFunctionImportTargetFunctionMustBeComposable = Value + 111,
///
/// Non-s-space function call in query view.
///
UnsupportedFunctionCallInQueryView = Value + 112,
///
/// Invalid function result mapping: result mapping count doesn't match result type count.
///
FunctionResultMappingCountMismatch = Value + 113,
///
/// The key properties of all entity types returned by the function import must be mapped to the same non-nullable columns returned by the storage function.
///
MappingFunctionImportCannotInferTargetFunctionKeys = Value + 114,
}
}