/// <summary> /// Removes a function import mapping. /// </summary> /// <param name="functionImportMapping">The function import mapping to remove.</param> public void RemoveFunctionImportMapping(FunctionImportMapping functionImportMapping) { Check.NotNull(functionImportMapping, "functionImportMapping"); Util.ThrowIfReadOnly(this); m_functionImportMappings.Remove(functionImportMapping.FunctionImport); }
/// <summary> /// Adds a function import mapping. /// </summary> /// <param name="functionImportMapping">The function import mapping to add.</param> public void AddFunctionImportMapping(FunctionImportMapping functionImportMapping) { Check.NotNull(functionImportMapping, "functionImportMapping"); Util.ThrowIfReadOnly(this); m_functionImportMappings.Add(functionImportMapping.FunctionImport, functionImportMapping); }
internal virtual bool TryGetFunctionImportMapping(EdmFunction functionImport, out FunctionImportMapping mapping) { return(m_functionImportMappings.TryGetValue(functionImport, out mapping)); }
// Methods to modify and access function imports, which association a "functionImport" declared // in the model entity container with a targetFunction declared in the target internal void AddFunctionImportMapping(EdmFunction functionImport, FunctionImportMapping mapping) { m_functionImportMappings.Add(functionImport, mapping); }
private void WriteFunctionImportMappingStartElement(FunctionImportMapping functionImportMapping) { _xmlWriter.WriteStartElement(MslConstructs.FunctionImportMappingElement); _xmlWriter.WriteAttributeString( MslConstructs.FunctionImportMappingFunctionNameAttribute, functionImportMapping.TargetFunction.FullName); _xmlWriter.WriteAttributeString( MslConstructs.FunctionImportMappingFunctionImportNameAttribute, functionImportMapping.FunctionImport.Name); }
/// <summary>Removes a function import mapping.</summary> /// <param name="functionImportMapping">The function import mapping to remove.</param> public void RemoveFunctionImportMapping(FunctionImportMapping functionImportMapping) { Check.NotNull <FunctionImportMapping>(functionImportMapping, nameof(functionImportMapping)); Util.ThrowIfReadOnly((MetadataItem)this); this.m_functionImportMappings.Remove(functionImportMapping.FunctionImport); }
// Methods to modify and access function imports, which association a "functionImport" declared // in the model entity container with a targetFunction declared in the target public void AddFunctionImportMapping(FunctionImportMapping mapping) { Check.NotNull(mapping, "mapping"); m_functionImportMappings.Add(mapping.FunctionImport, mapping); }