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
- PersonalizableAttribute.cs
- ModuleBuilderData.cs
- TypeConverterMarkupExtension.cs
- Debug.cs
- TemplateBindingExtensionConverter.cs
- ComponentFactoryHelpers.cs
- ConfigXmlComment.cs
- RepeatBehavior.cs
- AuthorizationRuleCollection.cs
- ExceptionUtil.cs
- ToolBarButton.cs
- HtmlHistory.cs
- WmlControlAdapter.cs
- StorageAssociationSetMapping.cs
- FontNameEditor.cs
- OptimalTextSource.cs
- SamlAuthenticationClaimResource.cs
- HMACRIPEMD160.cs
- MethodRental.cs
- HttpHandlerActionCollection.cs
- DbConnectionPoolGroup.cs
- EventSetter.cs
- SerializerDescriptor.cs
- JsonByteArrayDataContract.cs
- HttpApplicationStateBase.cs
- WindowsFormsHelpers.cs
- WebHeaderCollection.cs
- SqlDataSourceView.cs
- PartitionerStatic.cs
- CrossSiteScriptingValidation.cs
- IsolationInterop.cs
- PropertyMapper.cs
- PtsCache.cs
- MetadataItem_Static.cs
- XmlSchemaSubstitutionGroup.cs
- StateFinalizationActivity.cs
- SpeechSynthesizer.cs
- FormViewUpdatedEventArgs.cs
- DataGridViewCellMouseEventArgs.cs
- MetadataPropertyCollection.cs
- IsolationInterop.cs
- SafeNativeMemoryHandle.cs
- StickyNoteHelper.cs
- FrameworkContentElementAutomationPeer.cs
- MDIClient.cs
- SessionState.cs
- DiscoveryInnerClientAdhoc11.cs
- XmlSchemaSimpleContentExtension.cs
- BypassElement.cs
- Reference.cs
- RelationshipConverter.cs
- SqlCacheDependencyDatabaseCollection.cs
- UnicodeEncoding.cs
- Rect3DConverter.cs
- AssemblyInfo.cs
- ErrorInfoXmlDocument.cs
- XmlEncoding.cs
- ObjectTag.cs
- DataTemplateKey.cs
- CookielessHelper.cs
- XsdCachingReader.cs
- DrawListViewItemEventArgs.cs
- TextEndOfSegment.cs
- UriParserTemplates.cs
- MethodExpression.cs
- IMembershipProvider.cs
- ProxyWebPartConnectionCollection.cs
- SplineKeyFrames.cs
- TextLineResult.cs
- AsyncDataRequest.cs
- NameTable.cs
- RegistryExceptionHelper.cs
- Compiler.cs
- Inflater.cs
- SessionPageStatePersister.cs
- MinimizableAttributeTypeConverter.cs
- TrackBarRenderer.cs
- XmlValidatingReader.cs
- newinstructionaction.cs
- WindowsListViewItemCheckBox.cs
- _TLSstream.cs
- HostProtectionPermission.cs
- GeneralTransform3DGroup.cs
- DocumentGridPage.cs
- ButtonBase.cs
- SmtpNtlmAuthenticationModule.cs
- ImageDrawing.cs
- Adorner.cs
- EmptyStringExpandableObjectConverter.cs
- DrawingContext.cs
- MetadataPropertyAttribute.cs
- GlyphTypeface.cs
- DynamicControlParameter.cs
- Highlights.cs
- DesignerCategoryAttribute.cs
- AttributeProviderAttribute.cs
- FileDialogCustomPlacesCollection.cs
- ColorMatrix.cs
- Errors.cs
- AssemblyInfo.cs