Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Objects / DataClasses / RelationshipFixer.cs / 1305376 / RelationshipFixer.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Metadata.Edm; namespace System.Data.Objects.DataClasses { [Serializable] internal class RelationshipFixer: IRelationshipFixer where TSourceEntity : class where TTargetEntity : class { // The following fields are serialized. Adding or removing a serialized field is considered // a breaking change. This includes changing the field type or field name of existing // serialized fields. If you need to make this kind of change, it may be possible, but it // will require some custom serialization/deserialization code. RelationshipMultiplicity _sourceRoleMultiplicity; RelationshipMultiplicity _targetRoleMultiplicity; internal RelationshipFixer(RelationshipMultiplicity sourceRoleMultiplicity, RelationshipMultiplicity targetRoleMultiplicity) { _sourceRoleMultiplicity = sourceRoleMultiplicity; _targetRoleMultiplicity = targetRoleMultiplicity; } /// /// Used during relationship fixup when the source end of the relationship is not /// yet in the relationships list, and needs to be created /// /// RelationshipNavigation to be set on new RelatedEnd /// RelationshipManager to use for creating the new end ///Reference to the new collection or reference on the other end of the relationship RelatedEnd IRelationshipFixer.CreateSourceEnd(RelationshipNavigation navigation, RelationshipManager relationshipManager) { return relationshipManager.CreateRelatedEnd(navigation, _targetRoleMultiplicity, _sourceRoleMultiplicity, /*existingRelatedEnd*/ null); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsStartMenu.cs
- ConsumerConnectionPoint.cs
- CallbackWrapper.cs
- DefaultHttpHandler.cs
- SettingsSection.cs
- SchemaImporterExtensionElement.cs
- Operator.cs
- RegisteredExpandoAttribute.cs
- IntegerValidatorAttribute.cs
- BamlResourceSerializer.cs
- DbConnectionPoolGroupProviderInfo.cs
- RecordBuilder.cs
- InvokeProviderWrapper.cs
- InvokeDelegate.cs
- DataGridViewCellEventArgs.cs
- ListChangedEventArgs.cs
- TemplateKey.cs
- AccessKeyManager.cs
- XmlNodeReader.cs
- FastEncoder.cs
- LocatorPart.cs
- DataViewSetting.cs
- EntityChangedParams.cs
- TextBoxBase.cs
- XNodeNavigator.cs
- NameNode.cs
- DataFormats.cs
- ThousandthOfEmRealPoints.cs
- XmlSchemas.cs
- GeneralTransform3DGroup.cs
- CustomTrackingRecord.cs
- ToolTipAutomationPeer.cs
- RowVisual.cs
- MetadataHelper.cs
- EntityContainerEmitter.cs
- HttpCacheVaryByContentEncodings.cs
- SerializationException.cs
- CustomTrackingQuery.cs
- SiteMapDataSource.cs
- KerberosSecurityTokenProvider.cs
- BitmapInitialize.cs
- ListViewItem.cs
- HelpEvent.cs
- SafePointer.cs
- PackageProperties.cs
- SafeFileMappingHandle.cs
- AddingNewEventArgs.cs
- DbConnectionStringCommon.cs
- VirtualDirectoryMappingCollection.cs
- SystemWebSectionGroup.cs
- DataListItemCollection.cs
- ListBindableAttribute.cs
- PersonalizationProviderCollection.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- SafeCertificateStore.cs
- DurationConverter.cs
- FontDriver.cs
- GlyphInfoList.cs
- CalendarBlackoutDatesCollection.cs
- UIElement.cs
- RoutedEvent.cs
- Geometry3D.cs
- WorkflowRuntimeServicesBehavior.cs
- XDRSchema.cs
- KeyValueConfigurationCollection.cs
- PersistencePipeline.cs
- MD5CryptoServiceProvider.cs
- ConfigPathUtility.cs
- BitmapData.cs
- TextReader.cs
- PropertyPathConverter.cs
- DecimalAnimation.cs
- NativeMethods.cs
- URLString.cs
- RemotingServices.cs
- processwaithandle.cs
- BrowserDefinitionCollection.cs
- SQLBinaryStorage.cs
- WmpBitmapDecoder.cs
- BufferedGraphicsContext.cs
- FixUp.cs
- ImageInfo.cs
- TableItemStyle.cs
- ScriptRef.cs
- PageEventArgs.cs
- XPathAncestorIterator.cs
- TryLoadRunnableWorkflowCommand.cs
- DesignerToolStripControlHost.cs
- VectorAnimation.cs
- XhtmlCssHandler.cs
- WaitForChangedResult.cs
- RequestNavigateEventArgs.cs
- ServiceMetadataBehavior.cs
- Rotation3DAnimationBase.cs
- QueryCacheManager.cs
- ZoneIdentityPermission.cs
- DurableEnlistmentState.cs
- HighlightVisual.cs
- Stack.cs
- CompilerScopeManager.cs