コード例 #1
0
 internal AssociationSetTranslator(AssociationSetMapping setMapping)
 {
     if (null != setMapping)
     {
         m_mapping = setMapping.ModificationFunctionMapping;
     }
 }
コード例 #2
0
 public DynamicToFunctionModificationCommandConverter(
     AssociationSetModificationFunctionMapping associationSetModificationFunctionMapping,
     EntityContainerMapping entityContainerMapping)
 {
     this._associationSetModificationFunctionMapping = associationSetModificationFunctionMapping;
     this._entityContainerMapping = entityContainerMapping;
 }
 internal AssociationSetTranslator(AssociationSetMapping setMapping)
 {
     if (setMapping == null)
     {
         return;
     }
     this.m_mapping = setMapping.ModificationFunctionMapping;
 }
コード例 #4
0
 private void WriteModificationFunctionMapping(
     AssociationSetModificationFunctionMapping modificationFunctionMapping)
 {
     this._xmlWriter.WriteStartElement("ModificationFunctionMapping");
     this.WriteFunctionMapping("InsertFunction", modificationFunctionMapping.InsertFunctionMapping, true);
     this.WriteFunctionMapping("DeleteFunction", modificationFunctionMapping.DeleteFunctionMapping, true);
     this._xmlWriter.WriteEndElement();
 }
コード例 #5
0
        public DynamicToFunctionModificationCommandConverter(
            AssociationSetModificationFunctionMapping associationSetModificationFunctionMapping,
            EntityContainerMapping entityContainerMapping)
        {
            DebugCheck.NotNull(associationSetModificationFunctionMapping);
            DebugCheck.NotNull(entityContainerMapping);

            _associationSetModificationFunctionMapping = associationSetModificationFunctionMapping;
            _entityContainerMapping = entityContainerMapping;
        }
コード例 #6
0
 public void Configure(
     AssociationSetModificationFunctionMapping modificationStoredProcedureMapping,
     DbProviderManifest providerManifest)
 {
     if (this._insertModificationStoredProcedureConfiguration != null)
     {
         this._insertModificationStoredProcedureConfiguration.Configure(modificationStoredProcedureMapping.InsertFunctionMapping, providerManifest);
     }
     if (this._deleteModificationStoredProcedureConfiguration == null)
     {
         return;
     }
     this._deleteModificationStoredProcedureConfiguration.Configure(modificationStoredProcedureMapping.DeleteFunctionMapping, providerManifest);
 }
コード例 #7
0
        private void WriteModificationFunctionMapping(AssociationSetModificationFunctionMapping modificationFunctionMapping)
        {
            DebugCheck.NotNull(modificationFunctionMapping);

            _xmlWriter.WriteStartElement(MslConstructs.ModificationFunctionMappingElement);

            WriteFunctionMapping(
                MslConstructs.InsertFunctionElement,
                modificationFunctionMapping.InsertFunctionMapping,
                associationSetMapping: true);

            WriteFunctionMapping(
                MslConstructs.DeleteFunctionElement,
                modificationFunctionMapping.DeleteFunctionMapping,
                associationSetMapping: true);

            _xmlWriter.WriteEndElement();
        }
コード例 #8
0
        public void Configure(
            AssociationSetModificationFunctionMapping modificationStoredProcedureMapping,
            DbProviderManifest providerManifest)
        {
            DebugCheck.NotNull(modificationStoredProcedureMapping);
            DebugCheck.NotNull(providerManifest);

            if (_insertModificationStoredProcedureConfiguration != null)
            {
                _insertModificationStoredProcedureConfiguration
                .Configure(modificationStoredProcedureMapping.InsertFunctionMapping, providerManifest);
            }

            if (_deleteModificationStoredProcedureConfiguration != null)
            {
                _deleteModificationStoredProcedureConfiguration
                .Configure(modificationStoredProcedureMapping.DeleteFunctionMapping, providerManifest);
            }
        }
コード例 #9
0
 internal AssociationSetTranslator(AssociationSetMapping setMapping)
 {
     if (null != setMapping)
     {
         m_mapping = setMapping.ModificationFunctionMapping;
     }
 }