예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
 internal virtual bool TryGetFunctionImportMapping(EdmFunction functionImport, out FunctionImportMapping mapping)
 {
     return(m_functionImportMappings.TryGetValue(functionImport, out mapping));
 }
예제 #4
0
 // 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);
 }
예제 #7
0
        // 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);
        }