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
- CommonGetThemePartSize.cs
- Byte.cs
- DispatcherHookEventArgs.cs
- SymbolTable.cs
- sortedlist.cs
- DockingAttribute.cs
- NonBatchDirectoryCompiler.cs
- RadialGradientBrush.cs
- Tablet.cs
- ConnectionString.cs
- TripleDESCryptoServiceProvider.cs
- CodeVariableReferenceExpression.cs
- SoapIncludeAttribute.cs
- Activation.cs
- DrawingContextDrawingContextWalker.cs
- Repeater.cs
- InstanceLockTracking.cs
- QilIterator.cs
- GCHandleCookieTable.cs
- X509CertificateEndpointIdentity.cs
- ContentElement.cs
- DocumentEventArgs.cs
- TemplateBuilder.cs
- AnnotationResourceChangedEventArgs.cs
- TextPattern.cs
- MultiPropertyDescriptorGridEntry.cs
- SingleStorage.cs
- PublishLicense.cs
- DesignTimeTemplateParser.cs
- HttpInputStream.cs
- Int64KeyFrameCollection.cs
- XmlCharCheckingWriter.cs
- DbConnectionPoolGroup.cs
- DetailsViewPagerRow.cs
- ApplicationGesture.cs
- ProcessModuleCollection.cs
- ValidationError.cs
- SiteMapSection.cs
- XPathPatternParser.cs
- CollaborationHelperFunctions.cs
- PropertyChangedEventManager.cs
- LayoutManager.cs
- SmtpDateTime.cs
- ASCIIEncoding.cs
- BamlRecordWriter.cs
- HttpHandler.cs
- InertiaRotationBehavior.cs
- InkCanvasFeedbackAdorner.cs
- TemplateBindingExpression.cs
- JoinTreeNode.cs
- Vector3DValueSerializer.cs
- PropagationProtocolsTracing.cs
- LocalizationComments.cs
- ComNativeDescriptor.cs
- Trace.cs
- ThreadExceptionDialog.cs
- SelectionList.cs
- KeyboardEventArgs.cs
- TimeSpanSecondsConverter.cs
- CodeConditionStatement.cs
- ExpressionTextBox.xaml.cs
- BinaryConverter.cs
- TextRunProperties.cs
- AdornerPresentationContext.cs
- ConfigurationManagerInternalFactory.cs
- AuthenticateEventArgs.cs
- ControlPropertyNameConverter.cs
- DefaultEventAttribute.cs
- XmlSchemaException.cs
- SqlDataRecord.cs
- WebServiceData.cs
- DataGridHeaderBorder.cs
- DataGridViewRowsAddedEventArgs.cs
- Sentence.cs
- WindowsSlider.cs
- NamespaceEmitter.cs
- _RequestCacheProtocol.cs
- ArgIterator.cs
- ColorAnimationBase.cs
- GenericAuthenticationEventArgs.cs
- DbConnectionPoolGroup.cs
- DataServiceCollectionOfT.cs
- DirectionalLight.cs
- XMLUtil.cs
- ObjectViewListener.cs
- DynamicFilter.cs
- LinkedList.cs
- httpstaticobjectscollection.cs
- XmlUTF8TextWriter.cs
- WebHeaderCollection.cs
- LassoSelectionBehavior.cs
- BooleanConverter.cs
- EntitySqlQueryCacheKey.cs
- ModuleBuilder.cs
- DbConnectionStringBuilder.cs
- DesigntimeLicenseContext.cs
- DataListItemCollection.cs
- RangeValuePattern.cs
- DbConnectionFactory.cs
- Pair.cs