Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- BinaryUtilClasses.cs
- TemplateColumn.cs
- ValuePattern.cs
- _SslState.cs
- FormClosingEvent.cs
- SoapFormatExtensions.cs
- DataTableClearEvent.cs
- RelationshipWrapper.cs
- OperatingSystem.cs
- ExpandCollapseProviderWrapper.cs
- HttpResponse.cs
- RemotingServices.cs
- DetailsViewPageEventArgs.cs
- WebBrowserPermission.cs
- DataGridViewCellStateChangedEventArgs.cs
- EntityTypeEmitter.cs
- DbgUtil.cs
- HttpApplication.cs
- LongMinMaxAggregationOperator.cs
- MSAAEventDispatcher.cs
- EndPoint.cs
- EncoderNLS.cs
- WaitForChangedResult.cs
- MouseEventArgs.cs
- TextChange.cs
- WebPartTracker.cs
- SliderAutomationPeer.cs
- DataTemplate.cs
- MarkupExtensionParser.cs
- CommandBinding.cs
- TextBoxBase.cs
- TCPClient.cs
- EnterpriseServicesHelper.cs
- EventSourceCreationData.cs
- XmlSchemaInfo.cs
- InvokeBinder.cs
- User.cs
- QuaternionAnimation.cs
- XmlHierarchicalEnumerable.cs
- Util.cs
- SBCSCodePageEncoding.cs
- XsdValidatingReader.cs
- WebHttpBehavior.cs
- DynamicEntity.cs
- TypedElement.cs
- SamlAuthenticationStatement.cs
- ValueType.cs
- XmlSerializerFactory.cs
- GACMembershipCondition.cs
- ToolbarAUtomationPeer.cs
- PermissionSetEnumerator.cs
- ExternalFile.cs
- XmlQueryRuntime.cs
- tibetanshape.cs
- pingexception.cs
- RoleGroupCollection.cs
- RouteParameter.cs
- SecurityContextSecurityTokenResolver.cs
- LineUtil.cs
- EntityDataSource.cs
- QEncodedStream.cs
- Expression.cs
- XmlSchemaSimpleContentExtension.cs
- CollectionContainer.cs
- TransactionFlowAttribute.cs
- MissingSatelliteAssemblyException.cs
- JsonStringDataContract.cs
- ToolStripLocationCancelEventArgs.cs
- WhereaboutsReader.cs
- ColumnReorderedEventArgs.cs
- VectorCollection.cs
- JsonServiceDocumentSerializer.cs
- WebPartZoneBase.cs
- ValidationSummary.cs
- PassportPrincipal.cs
- ObjectNotFoundException.cs
- IdentityReference.cs
- MenuItemStyleCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ConvertEvent.cs
- PreservationFileReader.cs
- BookmarkInfo.cs
- Int16AnimationBase.cs
- OrCondition.cs
- ExtendedPropertyDescriptor.cs
- WorkflowMarkupElementEventArgs.cs
- WmlLabelAdapter.cs
- UserValidatedEventArgs.cs
- _ListenerAsyncResult.cs
- WhitespaceRule.cs
- CornerRadius.cs
- XmlComplianceUtil.cs
- DiscreteKeyFrames.cs
- WebPartTransformer.cs
- CodeCompiler.cs
- StoragePropertyMapping.cs
- DataGridViewCellCancelEventArgs.cs
- EventMetadata.cs
- MobileControlBuilder.cs
- TypeInfo.cs