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
- PerfService.cs
- CheckBoxStandardAdapter.cs
- ObjectReaderCompiler.cs
- SmtpFailedRecipientsException.cs
- SQLInt16Storage.cs
- StreamUpgradeProvider.cs
- DbMetaDataFactory.cs
- log.cs
- TabletCollection.cs
- Mapping.cs
- EntityReference.cs
- PixelFormatConverter.cs
- CompilationPass2Task.cs
- RichTextBox.cs
- DependencyProperty.cs
- GeometryModel3D.cs
- AutomationElementIdentifiers.cs
- SerializationAttributes.cs
- CacheEntry.cs
- Stack.cs
- PropertyDescriptorGridEntry.cs
- Condition.cs
- GridViewCellAutomationPeer.cs
- PropertyMetadata.cs
- JapaneseCalendar.cs
- ComplexLine.cs
- AuthenticationService.cs
- DecoderNLS.cs
- FullTrustAssembly.cs
- InputProcessorProfiles.cs
- XmlEventCache.cs
- SecurityElement.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CodeBinaryOperatorExpression.cs
- MarshalByValueComponent.cs
- X509Extension.cs
- NameSpaceEvent.cs
- MediaElement.cs
- ValueUtilsSmi.cs
- CompilationUtil.cs
- GeometryDrawing.cs
- ValidationSummary.cs
- ReadOnlyDictionary.cs
- SpeechEvent.cs
- TemplatedMailWebEventProvider.cs
- MatrixTransform.cs
- SignedPkcs7.cs
- BamlLocalizationDictionary.cs
- CallContext.cs
- XPathPatternBuilder.cs
- NativeCompoundFileAPIs.cs
- Popup.cs
- safelinkcollection.cs
- MenuItemAutomationPeer.cs
- PersistStreamTypeWrapper.cs
- FormsAuthenticationModule.cs
- SafeCertificateContext.cs
- BamlTreeNode.cs
- CodeTypeDeclarationCollection.cs
- StylusPoint.cs
- AsymmetricSignatureFormatter.cs
- BehaviorEditorPart.cs
- ProfileEventArgs.cs
- TagNameToTypeMapper.cs
- IndexerNameAttribute.cs
- IisNotInstalledException.cs
- AvTraceDetails.cs
- LinqDataSourceContextData.cs
- MessageOperationFormatter.cs
- ToolStripSplitStackLayout.cs
- ElementHostAutomationPeer.cs
- FormClosedEvent.cs
- GeometryModel3D.cs
- WebPartMenu.cs
- TdsParserSessionPool.cs
- QueryOutputWriter.cs
- RadioButton.cs
- ButtonFieldBase.cs
- RtfToXamlReader.cs
- RawStylusInput.cs
- BindingWorker.cs
- RemoteWebConfigurationHostStream.cs
- DataGridTablesFactory.cs
- WebBrowserPermission.cs
- SafeNativeMethodsOther.cs
- DateTimeOffset.cs
- UrlAuthFailureHandler.cs
- FileClassifier.cs
- UnsafeNativeMethods.cs
- XmlSerializerFactory.cs
- TripleDESCryptoServiceProvider.cs
- WebControlAdapter.cs
- DbParameterCollectionHelper.cs
- cookieexception.cs
- TextOptionsInternal.cs
- FilteredDataSetHelper.cs
- Evaluator.cs
- DataGridTextBox.cs
- HoistedLocals.cs
- WebServicesSection.cs