Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Design / system / Data / EntityModel / Emitters / AssociationTypeEmitter.cs / 1 / AssociationTypeEmitter.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.CodeDom; using System.Data; using System.Data.Metadata.Edm; using System.Data.EntityModel.SchemaObjectModel; using System.Diagnostics; namespace System.Data.EntityModel.Emitters { ////// Summary description for NestedTypeEmitter. /// internal sealed class AssociationTypeEmitter : SchemaTypeEmitter { public AssociationTypeEmitter(ClientApiGenerator generator, AssociationType associationType) : base(generator, associationType) { } public override CodeTypeDeclarationCollection EmitApiClass() { Debug.Assert((base.Item as AssociationType).AssociationEndMembers.Count == 2, "must have exactly two ends"); // this method doesn't actually create a new type, just a new assembly level attribute for each end return new CodeTypeDeclarationCollection(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.CodeDom; using System.Data; using System.Data.Metadata.Edm; using System.Data.EntityModel.SchemaObjectModel; using System.Diagnostics; namespace System.Data.EntityModel.Emitters { ////// Summary description for NestedTypeEmitter. /// internal sealed class AssociationTypeEmitter : SchemaTypeEmitter { public AssociationTypeEmitter(ClientApiGenerator generator, AssociationType associationType) : base(generator, associationType) { } public override CodeTypeDeclarationCollection EmitApiClass() { Debug.Assert((base.Item as AssociationType).AssociationEndMembers.Count == 2, "must have exactly two ends"); // this method doesn't actually create a new type, just a new assembly level attribute for each end return new CodeTypeDeclarationCollection(); } } } // 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
- RtfToken.cs
- NullableBoolConverter.cs
- LOSFormatter.cs
- BrowserCapabilitiesCodeGenerator.cs
- SqlConnectionPoolGroupProviderInfo.cs
- RepeaterCommandEventArgs.cs
- XPathExpr.cs
- SafeViewOfFileHandle.cs
- EditCommandColumn.cs
- ArgumentException.cs
- ImageAnimator.cs
- ModelPropertyDescriptor.cs
- PolyLineSegmentFigureLogic.cs
- jithelpers.cs
- DataSvcMapFileSerializer.cs
- WindowsRegion.cs
- TrackBar.cs
- Enlistment.cs
- ItemCollection.cs
- FlowDecisionLabelFeature.cs
- RayMeshGeometry3DHitTestResult.cs
- HighlightComponent.cs
- Byte.cs
- DbConnectionStringBuilder.cs
- EdmValidator.cs
- XmlSchemaAnyAttribute.cs
- EventMetadata.cs
- CodeLabeledStatement.cs
- CellTreeNodeVisitors.cs
- CalendarDateRangeChangingEventArgs.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- FormViewPageEventArgs.cs
- ViewBox.cs
- SpoolingTask.cs
- XDRSchema.cs
- WebPartManagerInternals.cs
- _ChunkParse.cs
- DataGridViewCellCancelEventArgs.cs
- TypographyProperties.cs
- TableRowsCollectionEditor.cs
- Size3D.cs
- LicenseContext.cs
- MsmqInputSessionChannelListener.cs
- RowToParametersTransformer.cs
- util.cs
- DocumentsTrace.cs
- WebPartTransformer.cs
- ConfigXmlWhitespace.cs
- ProxyHwnd.cs
- ReachDocumentSequenceSerializerAsync.cs
- PackWebResponse.cs
- PersonalizationStateQuery.cs
- HeaderUtility.cs
- StorageComplexPropertyMapping.cs
- ParentQuery.cs
- Addressing.cs
- DataKeyArray.cs
- ToolStripGrip.cs
- XmlSchemas.cs
- ContentValidator.cs
- HeaderedItemsControl.cs
- DashStyles.cs
- CompiledRegexRunner.cs
- EdgeModeValidation.cs
- EventLogStatus.cs
- TraceUtils.cs
- InkCanvas.cs
- ByteStreamMessageEncoderFactory.cs
- StringCollectionEditor.cs
- NonVisualControlAttribute.cs
- HotCommands.cs
- WebPartConnectionsCloseVerb.cs
- ScrollViewer.cs
- VisualStyleTypesAndProperties.cs
- InlineCollection.cs
- EmptyStringExpandableObjectConverter.cs
- FontWeight.cs
- JulianCalendar.cs
- ConditionalAttribute.cs
- XamlTemplateSerializer.cs
- DeviceFilterDictionary.cs
- SecurityTokenTypes.cs
- SHA512.cs
- DataMemberAttribute.cs
- DecodeHelper.cs
- ToolStripItemCollection.cs
- SmtpSection.cs
- InheritedPropertyChangedEventArgs.cs
- DiscreteKeyFrames.cs
- StreamUpdate.cs
- httpstaticobjectscollection.cs
- AssemblyUtil.cs
- BufferedGraphicsContext.cs
- EntityProviderFactory.cs
- EventListener.cs
- printdlgexmarshaler.cs
- ObjectItemConventionAssemblyLoader.cs
- DataBinder.cs
- BrowserCapabilitiesCodeGenerator.cs
- AutomationElement.cs