System\Data\Mapping\StorageMappingItemLoader.cs (33)
2127EdmProperty[] targetFunctionKeys = null;
2199internal static bool TryInferTVFKeys(List<Tuple<StructuralType, List<StorageConditionPropertyMapping>, List<StoragePropertyMapping>>> structuralTypeMappings, out EdmProperty[] keys)
2205EdmProperty[] currentKeys;
2241private static bool TryInferTVFKeysForEntityType(EntityType entityType, List<StoragePropertyMapping> propertyMappings, out EdmProperty[] keys)
2243keys = new EdmProperty[entityType.KeyMembers.Count];
2246var mapping = propertyMappings[entityType.Properties.IndexOf((EdmProperty)entityType.KeyMembers[i])] as StorageScalarPropertyMapping;
2371EdmProperty column;
2391var cTypeColumn = cTypeTvfElementType.Properties[column.Name];
2451foreach (EdmProperty property in Common.TypeHelpers.GetAllStructuralMembers(structuralType))
2482EdmProperty column;
2486var cTypeColumn = cTypeTvfElementType.Properties[columnName];
2833private StorageScalarPropertyMapping LoadScalarPropertyMapping(XPathNavigator nav, EdmType containerType, ReadOnlyMetadataCollection<EdmProperty> tableProperties)
2839EdmProperty member = null;
2857member = tempMember as EdmProperty;
2870EdmProperty columnMember;
2905private StorageComplexPropertyMapping LoadComplexPropertyMapping(XPathNavigator nav, EdmType containerType, ReadOnlyMetadataCollection<EdmProperty> tableProperties)
2914EdmProperty member = null;
2928member = tempMember as EdmProperty;
2954member = tempMember as EdmProperty;
3005private StorageComplexTypeMapping LoadComplexTypeMapping(XPathNavigator nav, EdmType type, ReadOnlyMetadataCollection<EdmProperty> tableType)
3180private StorageConditionPropertyMapping LoadConditionPropertyMapping(XPathNavigator nav, EdmType containerType, ReadOnlyMetadataCollection<EdmProperty> tableProperties)
3203EdmProperty member = null;
3212member = tempMember as EdmProperty;
3217EdmProperty columnMember = null;
3224EdmProperty conditionMember = (columnMember != null) ? columnMember : member;
3595private void ValidateAndUpdateScalarMemberMapping(EdmProperty member, EdmProperty columnMember, IXmlLineInfo lineInfo)
3833EdmProperty property = null;
3854KeyToListMap<EdmProperty, string> propertyToColumnNamesMap = new KeyToListMap<EdmProperty, string>(EqualityComparer<EdmProperty>.Default);
3859foreach (EdmProperty property in propertyToColumnNamesMap.Keys)
4316int ordinal = constraint.FromProperties.IndexOf((EdmProperty)m_members.First());
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (12)
193Dictionary<EdmProperty, PropagatorResult> setClauses = new Dictionary<EdmProperty, PropagatorResult>();
203EdmProperty property = processor.Table.ElementType.Properties[propertyOrdinal];
333foreach (KeyValuePair<EdmProperty, PropagatorResult> setClause in setClauses)
335EdmProperty property = setClause.Key;
365Dictionary<EdmProperty, PropagatorResult> whereClauses = new Dictionary<EdmProperty, PropagatorResult>();
369foreach (EdmProperty member in processor.Table.ElementType.Properties)
396foreach (KeyValuePair<EdmProperty, PropagatorResult> clause in whereClauses)
411private DbExpression GenerateEqualityExpression(DbExpressionBinding target, EdmProperty property, PropagatorResult value)
426private static DbExpression GeneratePropertyExpression(DbExpressionBinding target, EdmProperty property)
435private DbExpression GenerateValueExpression(EdmProperty property, PropagatorResult value)
System\Data\Metadata\Edm\MetadataItem_Static.cs (24)
323new EdmProperty[] { new EdmProperty(EdmConstants.Name, stringTypeUsage),
328new EdmProperty[] { new EdmProperty(EdmConstants.ItemAttributes, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.MetadataProperty).GetCollectionType())),
332new EdmProperty[] { new EdmProperty(EdmConstants.EdmType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmType))),
337new EdmProperty[] { new EdmProperty(EdmConstants.Name, stringTypeUsage),
344new EdmProperty[] { new EdmProperty(EdmConstants.EnumMembers, stringTypeUsage) });
347new EdmProperty[] { new EdmProperty(EdmConstants.TypeUsage, typeUsageTypeUsage) });
350new EdmProperty[] { new EdmProperty(EdmConstants.EntityType, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EntityType))) });
353new EdmProperty[] { new EdmProperty(EdmConstants.Name, stringTypeUsage),
357new EdmProperty[] { new EdmProperty(EdmConstants.Nullable, stringTypeUsage),
361new EdmProperty[] { new EdmProperty(EdmConstants.RelationshipTypeName, stringTypeUsage),
365new EdmProperty[] { new EdmProperty(EdmConstants.OperationBehaviors, complexTypeUsage),
369new EdmProperty[] { new EdmProperty(EdmConstants.Name, stringTypeUsage) });
372new EdmProperty[] { new EdmProperty(EdmConstants.ToRole, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.RelationshipEndMember))),
379new EdmProperty[] { new EdmProperty(EdmConstants.Members, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmMember))) });
382new EdmProperty[] { new EdmProperty(EdmConstants.KeyMembers, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.EdmMember))) });
385new EdmProperty[] { new EdmProperty(EdmConstants.Name, stringTypeUsage),
390new EdmProperty[] { new EdmProperty(EdmConstants.Name, stringTypeUsage),
394new EdmProperty[] { new EdmProperty(EdmConstants.Name, stringTypeUsage),
401new EdmProperty[] { new EdmProperty(EdmConstants.AssociationSetEnds, TypeUsage.Create(GetBuiltInType(BuiltInTypeKind.AssociationSetEnd).GetCollectionType()))});
404new EdmProperty[] { new EdmProperty(EdmConstants.Role, stringTypeUsage),
408new EdmProperty[] { new EdmProperty(EdmConstants.Name, stringTypeUsage),
413new EdmProperty[] { new EdmProperty(EdmConstants.Name, stringTypeUsage),
419new EdmProperty[] { new EdmProperty(EdmConstants.Summary, stringTypeUsage),
504private static void AddBuiltInTypeProperties(BuiltInTypeKind builtInTypeKind, EdmProperty[] properties)
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (18)
385List<KeyValuePair<EdmProperty, PropertyInfo>> typeClosureToTrack =
386new List<KeyValuePair<EdmProperty, PropertyInfo>>();
387foreach (EdmProperty cspaceProperty in cspaceType.GetDeclaredOnlyMembers<EdmProperty>().Where(m => Helper.IsComplexType(m.TypeUsage.EdmType)))
393new KeyValuePair<EdmProperty, PropertyInfo>(
409var cp = typeToTrack.Key;
485private void CreateAndAddComplexType(Type type, StructuralType ospaceType, EdmProperty cspaceProperty, PropertyInfo clrProperty)
492EdmProperty property = new EdmProperty(cspaceProperty.Name, TypeUsage.Create(propertyType, new FacetValues { Nullable = false }), clrProperty, type.TypeHandle);
563foreach (EdmProperty cspaceProperty in cspaceType.GetDeclaredOnlyMembers<EdmProperty>().Where(p => Helper.IsPrimitiveType(p.TypeUsage.EdmType)))
601var typeClosureToTrack = new List<KeyValuePair<EdmProperty, PropertyInfo>>();
603foreach (EdmProperty cspaceProperty in cspaceType.GetDeclaredOnlyMembers<EdmProperty>().Where(p => Helper.IsEnumType(p.TypeUsage.EdmType)))
608typeClosureToTrack.Add(new KeyValuePair<EdmProperty, PropertyInfo>(cspaceProperty, clrProperty));
623var cp = typeToTrack.Key;
638private void CreateAndAddEnumProperty(Type type, StructuralType ospaceType, EdmProperty cspaceProperty, PropertyInfo clrProperty)
739private void AddScalarMember(Type type, PropertyInfo clrProperty, StructuralType ospaceType, EdmProperty cspaceProperty, EdmType propertyType)
756EdmProperty ospaceProperty =
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (63)
113private readonly Dictionary<md.EdmFunction, md.EdmProperty[]> m_tvfResultKeys;
125Dictionary<md.EdmFunction, md.EdmProperty[]> tvfResultKeys)
149Dictionary<md.EdmFunction, md.EdmProperty[]> tvfResultKeys)
289private Node BuildAccessor(Node input, md.EdmProperty property)
327private Node BuildAccessorWithNulls(Node input, md.EdmProperty property)
471foreach (md.EdmProperty m in recordType.Properties)
584private IEnumerable<md.EdmProperty> GetProperties(TypeInfo typeInfo, OperationKind opKind)
588foreach (md.EdmProperty p in typeInfo.GetAllProperties())
615out List<md.EdmProperty> properties, out List<Node> values)
619properties = new List<md.EdmProperty>();
620foreach (md.EdmProperty prop in GetProperties(typeInfo, opKind))
622KeyValuePair<md.EdmProperty, Node> kv = GetPropertyValue(input, prop, ignoreMissingProperties);
639private KeyValuePair<md.EdmProperty, Node> GetPropertyValue(Node input, md.EdmProperty property, bool ignoreMissingProperties)
651return new KeyValuePair<md.EdmProperty, Node>(property, n);
708Dictionary<md.EdmProperty, PropertyRef> flattenedTypePropertyToPropertyRef = new Dictionary<md.EdmProperty, PropertyRef>();
714foreach (var flattenedTypeProperty in unnestOpTableTypeInfo.FlattenedType.Properties)
839List<md.EdmProperty> newProps = new List<md.EdmProperty>();
850md.EdmProperty newProperty = typeInfo.GetNewProperty(p);
1160List<md.EdmProperty> properties = new List<System.Data.Metadata.Edm.EdmProperty>();
1163foreach (md.EdmProperty p in TypeHelpers.GetAllStructuralMembers(columnVar.Type.EdmType))
1167foreach (md.EdmProperty p in newRowType.Properties)
1176md.EdmProperty p = typeInfo.GetNewProperty(pref);
1453typeInfo.FlattenedType.Properties.ToList<md.EdmProperty>());
1459private IEnumerable<md.EdmProperty> GetTvfResultKeys(md.EdmFunction tvf)
1461md.EdmProperty[] keys;
1466return Enumerable.Empty<md.EdmProperty>();
1604foreach (md.EdmProperty prop in outerSvarInfo.Fields)
1655List<md.EdmProperty> newProps = new List<md.EdmProperty>();
1663md.EdmProperty newProperty = typeInfo.GetNewProperty(p);
1745IEnumerator<md.EdmProperty> outputs = newOp.Properties.GetEnumerator();
1779md.EdmProperty p = outputs.Current;
2052List<md.EdmProperty> fieldTypes = new List<md.EdmProperty>();
2062md.EdmProperty property = typeInfo.GetNewProperty(pref);
2140List<md.EdmProperty> properties1;
2141List<md.EdmProperty> properties2;
2212List<md.EdmProperty> properties = null;
2292List<md.EdmProperty> inputFieldTypes;
2315List<md.EdmProperty> outputFieldTypes = new List<md.EdmProperty>(outputTypeInfo.FlattenedType.Properties);
2355List<md.EdmProperty> fieldTypes = new List<md.EdmProperty>();
2365md.EdmProperty newNestedProp;
2369md.EdmProperty outputNestedProp = outputTypeInfo.GetNewProperty(npr);
2384md.EdmProperty newProp = inputTypeInfo.GetNewProperty(propertyRef);
2443List<md.EdmProperty> inputFields;
2448List<md.EdmProperty> outputFields = new List<md.EdmProperty>(outputTypeInfo.FlattenedType.Properties);
2489private static void RemoveNullSentinel(TypeInfo inputTypeInfo, List<md.EdmProperty> inputFields, List<Node> inputFieldValues, List<md.EdmProperty> outputFields)
2650private Node GetEntitySetIdExpr(md.EdmProperty entitySetIdProperty, NewEntityBaseOp op)
2714List<md.EdmProperty> newFields = new List<md.EdmProperty>();
2784foreach (md.EdmProperty nestedProperty in nestedFlatType.Properties)
2801md.EdmProperty outputTypeProp = typeInfo.GetNewProperty(propRef);
2825foreach (md.EdmProperty nestedProperty in nestedFlatType.Properties)
2881List<md.EdmProperty> newFields = new List<md.EdmProperty>();
System\Data\Query\PlanCompiler\VarInfo.cs (9)
114private Dictionary<md.EdmProperty, Var> m_propertyToVarMap;
117List<md.EdmProperty> m_newProperties;
128internal StructuredVarInfo(md.RowType newType, List<Var> newVars, List<md.EdmProperty> newTypeProperties, bool newVarsIncludeNullSentinelVar)
162internal List<md.EdmProperty> Fields { get { return m_newProperties; } }
180internal bool TryGetVar(md.EdmProperty p, out Var v) {
203m_propertyToVarMap = new Dictionary<md.EdmProperty, Var>();
205foreach (md.EdmProperty prop in m_newProperties) {
275internal VarInfo CreateStructuredVarInfo(Var v, md.RowType newType, List<Var> newVars, List<md.EdmProperty> newProperties, bool newVarsIncludeNullSentinelVar)
289internal VarInfo CreateStructuredVarInfo(Var v, md.RowType newType, List<Var> newVars, List<md.EdmProperty> newProperties)