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
- StateItem.cs
- MediaContextNotificationWindow.cs
- localization.cs
- dtdvalidator.cs
- XmlSchemaSet.cs
- DecimalAnimationUsingKeyFrames.cs
- MatrixValueSerializer.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- SqlDataSourceConfigureFilterForm.cs
- JournalEntry.cs
- DataTableMappingCollection.cs
- XamlDesignerSerializationManager.cs
- QueryOutputWriter.cs
- HtmlTitle.cs
- AssemblyBuilder.cs
- ListItemConverter.cs
- sqlcontext.cs
- SafeRegistryHandle.cs
- PinnedBufferMemoryStream.cs
- InvokeProviderWrapper.cs
- PrefixQName.cs
- ErrorFormatter.cs
- MDIWindowDialog.cs
- DesignerTextWriter.cs
- TextFormatterContext.cs
- Exception.cs
- SqlNotificationEventArgs.cs
- ProxyWebPart.cs
- StyleHelper.cs
- FixUp.cs
- DependentList.cs
- AttributeQuery.cs
- DataTableExtensions.cs
- QueryResult.cs
- XmlHelper.cs
- XPathDocumentBuilder.cs
- SpellerError.cs
- DataSysAttribute.cs
- RuleSetDialog.Designer.cs
- DataBindEngine.cs
- ButtonAutomationPeer.cs
- BStrWrapper.cs
- StreamUpgradeInitiator.cs
- ReferencedCollectionType.cs
- ImageFormatConverter.cs
- TileModeValidation.cs
- ImageField.cs
- UserControlDesigner.cs
- ListItemCollection.cs
- OutputCacheSettings.cs
- NavigationService.cs
- XmlSchemaComplexType.cs
- ExpressionLexer.cs
- ShaderEffect.cs
- WindowsTooltip.cs
- InputBuffer.cs
- ConfigurationManager.cs
- StructuredTypeInfo.cs
- CodeDirectiveCollection.cs
- ModifyActivitiesPropertyDescriptor.cs
- IisTraceWebEventProvider.cs
- SoapElementAttribute.cs
- CompileLiteralTextParser.cs
- WebPartsPersonalization.cs
- Unit.cs
- AspNetRouteServiceHttpHandler.cs
- TemplatePagerField.cs
- SoapFault.cs
- FrameworkContextData.cs
- OpacityConverter.cs
- DefaultWorkflowTransactionService.cs
- ContainerUIElement3D.cs
- ProfileSettings.cs
- ModelItem.cs
- invalidudtexception.cs
- TextTreeDeleteContentUndoUnit.cs
- MDIWindowDialog.cs
- ObjectHelper.cs
- ThreadNeutralSemaphore.cs
- FixedTextPointer.cs
- DelegateTypeInfo.cs
- DragStartedEventArgs.cs
- BitmapEffectGroup.cs
- ListControl.cs
- InvokeMemberBinder.cs
- MissingMemberException.cs
- CodeEventReferenceExpression.cs
- TableRowCollection.cs
- ShapeTypeface.cs
- RegionIterator.cs
- Operand.cs
- infer.cs
- ValueSerializer.cs
- RenderCapability.cs
- Screen.cs
- ContentPlaceHolder.cs
- ConfigurationSection.cs
- BaseDataList.cs
- ResourcesGenerator.cs
- CollectionBase.cs