internal AssociationSetTranslator(AssociationSetMapping setMapping) { if (null != setMapping) { m_mapping = setMapping.ModificationFunctionMapping; } }
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; }
private void WriteModificationFunctionMapping( AssociationSetModificationFunctionMapping modificationFunctionMapping) { this._xmlWriter.WriteStartElement("ModificationFunctionMapping"); this.WriteFunctionMapping("InsertFunction", modificationFunctionMapping.InsertFunctionMapping, true); this.WriteFunctionMapping("DeleteFunction", modificationFunctionMapping.DeleteFunctionMapping, true); this._xmlWriter.WriteEndElement(); }
public DynamicToFunctionModificationCommandConverter( AssociationSetModificationFunctionMapping associationSetModificationFunctionMapping, EntityContainerMapping entityContainerMapping) { DebugCheck.NotNull(associationSetModificationFunctionMapping); DebugCheck.NotNull(entityContainerMapping); _associationSetModificationFunctionMapping = associationSetModificationFunctionMapping; _entityContainerMapping = entityContainerMapping; }
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); }
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(); }
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); } }