156 references to StorageMslConstructs
System.Data.Entity (156)
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (7)
213
(reader.LocalName == XmlConstants.Schema || reader.LocalName ==
StorageMslConstructs
.MappingElement))
255
case
StorageMslConstructs
.NamespaceUriV1:
256
version =
StorageMslConstructs
.MappingVersionV1;
259
case
StorageMslConstructs
.NamespaceUriV2:
260
version =
StorageMslConstructs
.MappingVersionV2;
263
case
StorageMslConstructs
.NamespaceUriV3:
264
version =
StorageMslConstructs
.MappingVersionV3;
System\Data\EntityModel\SchemaObjectModel\XmlSchemaResource.cs (6)
88
XmlSchemaResource msl1 = new XmlSchemaResource(
StorageMslConstructs
.NamespaceUriV1,
StorageMslConstructs
.ResourceXsdNameV1);
93
XmlSchemaResource msl2 = new XmlSchemaResource(
StorageMslConstructs
.NamespaceUriV2,
StorageMslConstructs
.ResourceXsdNameV2);
100
XmlSchemaResource msl3 = new XmlSchemaResource(
StorageMslConstructs
.NamespaceUriV3,
StorageMslConstructs
.ResourceXsdNameV3);
System\Data\Mapping\FunctionImportMapping.cs (3)
249
string isTypeOfDescription =
StorageMslConstructs
.IsTypeOf + unreachableIsTypeOf.Key.FullName +
StorageMslConstructs
.IsTypeOfTerminal;
623
throw EntityUtil.CommandExecution(Strings.Mapping_FunctionImport_ConditionValueTypeMismatch(
StorageMslConstructs
.FunctionImportMappingElement, this.ColumnName, columnValueType.FullName));
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
383
throw EntityUtil.InvalidOperation(System.Data.Entity.Strings.Generated_View_Type_Super_Class(
StorageMslConstructs
.EntityViewGenerationTypeName));
System\Data\Mapping\StorageMappingItemLoader.cs (135)
119
if (m_currentNamespaceUri ==
StorageMslConstructs
.NamespaceUriV1)
121
m_version =
StorageMslConstructs
.MappingVersionV1;
123
else if (m_currentNamespaceUri ==
StorageMslConstructs
.NamespaceUriV2)
125
m_version =
StorageMslConstructs
.MappingVersionV2;
129
Debug.Assert(m_currentNamespaceUri ==
StorageMslConstructs
.NamespaceUriV3, "Did you add a new Namespace?");
130
m_version =
StorageMslConstructs
.MappingVersionV3;
235
StorageMslConstructs
.NamespaceUriV1,
236
StorageMslConstructs
.NamespaceUriV2,
237
StorageMslConstructs
.NamespaceUriV3),
259
if (nav.MoveToChild(
StorageMslConstructs
.MappingElement,
StorageMslConstructs
.NamespaceUriV3))
262
m_currentNamespaceUri =
StorageMslConstructs
.NamespaceUriV3;
265
else if (nav.MoveToChild(
StorageMslConstructs
.MappingElement,
StorageMslConstructs
.NamespaceUriV2))
268
m_currentNamespaceUri =
StorageMslConstructs
.NamespaceUriV2;
271
else if (nav.MoveToChild(
StorageMslConstructs
.MappingElement,
StorageMslConstructs
.NamespaceUriV1))
273
m_currentNamespaceUri =
StorageMslConstructs
.NamespaceUriV1;
290
if (nav.MoveToChild(
StorageMslConstructs
.AliasElement, m_currentNamespaceUri))
295
m_alias.Add(StorageMappingItemLoader.GetAttributeValue(nav.Clone(),
StorageMslConstructs
.AliasKeyAttribute), StorageMappingItemLoader.GetAttributeValue(nav.Clone(),
StorageMslConstructs
.AliasValueAttribute));
296
} while (nav.MoveToNext(
StorageMslConstructs
.AliasElement, m_currentNamespaceUri));
319
Debug.Assert(nav.LocalName ==
StorageMslConstructs
.EntityContainerMappingElement);
320
string entityContainerName = GetAttributeValue(nav.Clone(),
StorageMslConstructs
.CdmEntityContainerAttribute);
321
string storageEntityContainerName = GetAttributeValue(nav.Clone(),
StorageMslConstructs
.StorageEntityContainerAttribute);
323
bool generateUpdateViews = GetBoolAttributeValue(nav.Clone(),
StorageMslConstructs
.GenerateUpdateViews, true /* default is true */);
412
case
StorageMslConstructs
.EntitySetMappingElement:
418
case
StorageMslConstructs
.AssociationSetMappingElement:
423
case
StorageMslConstructs
.FunctionImportMappingElement:
477
expectedEnds,
StorageMslConstructs
.DeleteFunctionElement);
483
expectedEnds,
StorageMslConstructs
.InsertFunctionElement);
489
expectedEnds,
StorageMslConstructs
.UpdateFunctionElement);
791
string entitySetName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.EntitySetMappingNameAttribute);
793
string entityTypeName = StorageMappingItemLoader.GetAttributeValue(nav.Clone(),
StorageMslConstructs
.EntitySetMappingTypeNameAttribute);
795
string tableName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.EntitySetMappingStoreEntitySetAttribute);
797
bool distinctFlag = GetBoolAttributeValue(nav.Clone(),
StorageMslConstructs
.MappingFragmentMakeColumnsDistinctAttribute, false /*default value*/);
843
case
StorageMslConstructs
.EntityTypeMappingElement:
846
tableName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.EntityTypeMappingStoreEntitySetAttribute);
851
case
StorageMslConstructs
.QueryViewElement:
933
string entityTypeAttribute = GetAttributeValue(nav.Clone(),
StorageMslConstructs
.EntitySetMappingTypeNameAttribute);
939
var entityTypeNames = entityTypeAttribute.Split(
StorageMslConstructs
.TypeNameSperator).Select(s => s.Trim());
944
bool isTypeOf = name.StartsWith(
StorageMslConstructs
.IsTypeOf, StringComparison.Ordinal);
949
if (!name.EndsWith(
StorageMslConstructs
.IsTypeOfTerminal, StringComparison.Ordinal))
956
entityTypeName = name.Substring(
StorageMslConstructs
.IsTypeOf.Length);
957
entityTypeName = entityTypeName.Substring(0, entityTypeName.Length -
StorageMslConstructs
.IsTypeOfTerminal.Length).Trim();
1069
if (nav.LocalName ==
StorageMslConstructs
.ModificationFunctionMappingElement)
1074
else if (nav.LocalName !=
StorageMslConstructs
.MappingFragmentElement)
1082
bool distinctFlag = GetBoolAttributeValue(nav.Clone(),
StorageMslConstructs
.MappingFragmentMakeColumnsDistinctAttribute, false /*default value*/);
1090
tableName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.MappingFragmentStoreEntitySetAttribute);
1102
if (nav.LocalName ==
StorageMslConstructs
.ModificationFunctionMappingElement)
1184
case
StorageMslConstructs
.DeleteFunctionElement:
1187
case
StorageMslConstructs
.InsertFunctionElement:
1190
case
StorageMslConstructs
.UpdateFunctionElement:
1253
Debug.Assert(nav.LocalName ==
StorageMslConstructs
.QueryViewElement);
1258
string typeNameString = StorageMappingItemLoader.GetAttributeValue(nav.Clone(),
StorageMslConstructs
.EntitySetMappingTypeNameAttribute);
1404
string associationSetName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.AssociationSetMappingNameAttribute);
1406
string associationTypeName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.AssociationSetMappingTypeNameAttribute);
1408
string tableName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.EntitySetMappingStoreEntitySetAttribute);
1468
if (nav.LocalName ==
StorageMslConstructs
.QueryViewElement)
1490
if ((nav.LocalName ==
StorageMslConstructs
.EndPropertyMappingElement) ||
1491
(nav.LocalName ==
StorageMslConstructs
.ModificationFunctionMappingElement))
1502
else if (nav.LocalName ==
StorageMslConstructs
.ConditionElement)
1566
if (nav.LocalName ==
StorageMslConstructs
.FunctionImportMappingResultMapping)
1687
string functionName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.FunctionImportMappingFunctionNameAttribute);
1720
string functionImportName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.FunctionImportMappingFunctionImportNameAttribute);
1849
if (nav.LocalName ==
StorageMslConstructs
.EntityTypeMappingElement)
1858
StorageMslConstructs
.EntityTypeMappingElement, functionImport.Identity),
1883
else if (nav.LocalName ==
StorageMslConstructs
.ComplexTypeMappingElement)
1939
string complexTypeName = GetAttributeValue(nav.Clone(),
StorageMslConstructs
.ComplexTypeMappingTypeNameAttribute);
1971
string entityTypeString = GetAttributeValue(nav.Clone(),
StorageMslConstructs
.EntitySetMappingTypeNameAttribute);
2013
if (nav.LocalName ==
StorageMslConstructs
.ScalarPropertyElement)
2017
if (nav.LocalName ==
StorageMslConstructs
.ConditionElement)
2051
string memberName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ScalarPropertyNameAttribute);
2052
string columnName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ScalarPropertyColumnNameAttribute);
2320
string columnName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ConditionColumnNameAttribute);
2321
string value = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ConditionValueAttribute);
2322
string isNull = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ConditionIsNullAttribute);
2345
columnValue.MoveToAttribute(
StorageMslConstructs
.ConditionValueAttribute, string.Empty);
2613
case
StorageMslConstructs
.DeleteFunctionElement:
2616
case
StorageMslConstructs
.InsertFunctionElement:
2673
string propertyName = StorageMappingItemLoader.GetAttributeValue(nav.Clone(),
StorageMslConstructs
.ComplexPropertyNameAttribute);
2681
case
StorageMslConstructs
.ScalarPropertyElement:
2689
case
StorageMslConstructs
.ComplexPropertyElement:
2698
case
StorageMslConstructs
.ConditionElement:
2768
case
StorageMslConstructs
.EndPropertyMappingElement:
2776
string endName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.EndPropertyMappingNameAttribute);
2789
case
StorageMslConstructs
.ConditionElement:
2811
case
StorageMslConstructs
.ModificationFunctionMappingElement:
2838
string propertyName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ScalarPropertyNameAttribute);
2868
string columnName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ScalarPropertyColumnNameAttribute);
2911
string propertyName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ComplexPropertyNameAttribute);
2917
string memberTypeName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ComplexTypeMappingTypeNameAttribute);
2977
if (cloneNav.LocalName ==
StorageMslConstructs
.ComplexTypeMappingElement)
3009
string partialAttribute = StorageMappingItemLoader.GetAttributeValue(nav.Clone(),
StorageMslConstructs
.ComplexPropertyIsPartialAttribute);
3024
Debug.Assert(nav.LocalName ==
StorageMslConstructs
.ComplexTypeMappingElement);
3025
string typeName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ComplexTypeMappingTypeNameAttribute);
3026
int index = typeName.IndexOf(
StorageMslConstructs
.TypeNameSperator);
3041
int isTypeOfIndex = currentTypeName.IndexOf(
StorageMslConstructs
.IsTypeOf, StringComparison.Ordinal);
3044
currentTypeName = currentTypeName.Substring(
StorageMslConstructs
.IsTypeOf.Length, (currentTypeName.Length - (
StorageMslConstructs
.IsTypeOf.Length + 1)));
3057
index = typeName.IndexOf(
StorageMslConstructs
.TypeNameSperator);
3068
index = typeName.IndexOf(
StorageMslConstructs
.TypeNameSperator);
3077
EdmType containerType = typeMapping.GetOwnerType(StorageMappingItemLoader.GetAttributeValue(nav.Clone(),
StorageMslConstructs
.ComplexPropertyNameAttribute));
3080
case
StorageMslConstructs
.ScalarPropertyElement:
3089
case
StorageMslConstructs
.ComplexPropertyElement:
3098
case
StorageMslConstructs
.ConditionElement:
3141
case
StorageMslConstructs
.ScalarPropertyElement:
3183
string propertyName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ConditionNameAttribute);
3185
string columnName = GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ConditionColumnNameAttribute);
3235
string isNullAttribute = StorageMappingItemLoader.GetAttributeValue(nav.Clone(),
StorageMslConstructs
.ConditionIsNullAttribute);
3273
if(!StorageMappingItemLoader.TryGetTypedAttributeValue(nav.Clone(),
StorageMslConstructs
.ConditionValueAttribute, clrMemberType, m_sourceLocation, m_parsingErrors, out value))
3281
value = StorageMappingItemLoader.GetEnumAttributeValue(nav.Clone(),
StorageMslConstructs
.ConditionValueAttribute, (EnumType)edmType, m_sourceLocation, m_parsingErrors);
3357
AddResourceXsdToSchemaSet(set,
StorageMslConstructs
.ResourceXsdNameV1);
3358
AddResourceXsdToSchemaSet(set,
StorageMslConstructs
.ResourceXsdNameV2);
3359
AddResourceXsdToSchemaSet(set,
StorageMslConstructs
.ResourceXsdNameV3);
3824
if (nav.LocalName ==
StorageMslConstructs
.ResultBindingElement)
3828
StorageMslConstructs
.ResultBindingPropertyNameAttribute);
3830
StorageMslConstructs
.ScalarPropertyColumnNameAttribute);
3916
case
StorageMslConstructs
.ScalarPropertyElement:
3930
case
StorageMslConstructs
.ComplexPropertyElement:
3949
case
StorageMslConstructs
.AssociationEndElement:
3968
case
StorageMslConstructs
.EndPropertyMappingElement:
3997
nav.Clone(),
StorageMslConstructs
.AssociationSetAttribute);
3999
nav.Clone(),
StorageMslConstructs
.FromAttribute);
4001
nav.Clone(),
StorageMslConstructs
.ToAttribute);
4094
nav.Clone(),
StorageMslConstructs
.EndPropertyMappingNameAttribute);
4118
nav.Clone(),
StorageMslConstructs
.ComplexPropertyNameAttribute);
4120
nav.Clone(),
StorageMslConstructs
.ComplexTypeMappingTypeNameAttribute);
4166
string parameterName = m_parentLoader.GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ParameterNameAttribute);
4167
string propertyName = m_parentLoader.GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ScalarPropertyNameAttribute);
4168
string version = m_parentLoader.GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.ParameterVersionAttribute);
4197
isCurrent = version ==
StorageMslConstructs
.ParameterVersionAttributeCurrentValue;
4347
string functionName = m_parentLoader.GetAliasResolvedAttributeValue(nav.Clone(),
StorageMslConstructs
.FunctionNameAttribute);
4382
string rowsAffectedParameterName = GetAttributeValue(nav,
StorageMslConstructs
.RowsAffectedParameterAttribute);
4423
parameter.Name,
StorageMslConstructs
.RowsAffectedParameterAttribute), StorageMappingErrorCode.InvalidModificationFunctionMappingNotValidFunctionParameter,
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (4)
577
missingCudElement =
StorageMslConstructs
.DeleteFunctionElement;
581
missingCudElement =
StorageMslConstructs
.InsertFunctionElement;
586
missingCudElement =
StorageMslConstructs
.UpdateFunctionElement;
588
throw EntityUtil.Update(System.Data.Entity.Strings.Update_SqlEntitySetWithoutDmlFunctions(expression.Target.Name, missingCudElement,
StorageMslConstructs
.ModificationFunctionMappingElement), null);