Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / IntegerFacetDescriptionElement.cs / 1 / IntegerFacetDescriptionElement.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Data.Metadata.Edm; using System.Xml; using System.Diagnostics; namespace System.Data.EntityModel.SchemaObjectModel { internal sealed class IntegerFacetDescriptionElement : FacetDescriptionElement { public IntegerFacetDescriptionElement(TypeElement type, string name) :base(type, name) { } public override EdmType FacetType { get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Int32); } } ///////////////////////////////////////////////////////////////////// // Attribute Handlers ////// Handler for the Default attribute /// /// xml reader currently positioned at Default attribute protected override void HandleDefaultAttribute(XmlReader reader) { int value = -1; if (HandleIntAttribute(reader, ref value)) { DefaultValue = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Data.Metadata.Edm; using System.Xml; using System.Diagnostics; namespace System.Data.EntityModel.SchemaObjectModel { internal sealed class IntegerFacetDescriptionElement : FacetDescriptionElement { public IntegerFacetDescriptionElement(TypeElement type, string name) :base(type, name) { } public override EdmType FacetType { get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Int32); } } ///////////////////////////////////////////////////////////////////// // Attribute Handlers ////// Handler for the Default attribute /// /// xml reader currently positioned at Default attribute protected override void HandleDefaultAttribute(XmlReader reader) { int value = -1; if (HandleIntAttribute(reader, ref value)) { DefaultValue = value; } } } } // 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
- DbXmlEnabledProviderManifest.cs
- PropertyCondition.cs
- InfoCardBinaryReader.cs
- BCLDebug.cs
- GuidelineSet.cs
- TransportOutputChannel.cs
- TemplateBuilder.cs
- Message.cs
- PersistenceParticipant.cs
- SecurityTokenResolver.cs
- ItemsPresenter.cs
- SqlFileStream.cs
- TextBox.cs
- SqlStatistics.cs
- MethodCallConverter.cs
- ItemCheckEvent.cs
- ServiceThrottlingBehavior.cs
- Vector.cs
- OneOf.cs
- LayoutEngine.cs
- SeekStoryboard.cs
- PingOptions.cs
- ComponentEditorForm.cs
- ServiceDocumentFormatter.cs
- InlinedAggregationOperator.cs
- SoapExtension.cs
- SmtpNegotiateAuthenticationModule.cs
- CustomPeerResolverService.cs
- CompilerParameters.cs
- CompressionTransform.cs
- ServiceOperationListItemList.cs
- TextAdaptor.cs
- SerialPort.cs
- AnnouncementService.cs
- SqlClientPermission.cs
- ExpressionParser.cs
- PathSegmentCollection.cs
- SmiEventStream.cs
- XmlILCommand.cs
- TypeUsageBuilder.cs
- MasterPageBuildProvider.cs
- sqlmetadatafactory.cs
- FileLogRecord.cs
- AutomationPropertyInfo.cs
- UnaryNode.cs
- Attribute.cs
- webclient.cs
- MainMenu.cs
- ObjectResult.cs
- ResourceWriter.cs
- FileLogRecordStream.cs
- CursorConverter.cs
- DbParameterHelper.cs
- XPathDescendantIterator.cs
- Descriptor.cs
- TracePayload.cs
- TagPrefixAttribute.cs
- StsCommunicationException.cs
- HyperlinkAutomationPeer.cs
- Lazy.cs
- Win32Native.cs
- _BaseOverlappedAsyncResult.cs
- SessionStateItemCollection.cs
- EqualityComparer.cs
- BulletedList.cs
- DataGridViewDataErrorEventArgs.cs
- contentDescriptor.cs
- JsonReader.cs
- Floater.cs
- ChildChangedEventArgs.cs
- StringFreezingAttribute.cs
- RemotingAttributes.cs
- BasicSecurityProfileVersion.cs
- TransformCollection.cs
- XPathSingletonIterator.cs
- XmlDataLoader.cs
- RowUpdatedEventArgs.cs
- ResourcePart.cs
- DragAssistanceManager.cs
- GroupBoxDesigner.cs
- TextDecorationCollection.cs
- SparseMemoryStream.cs
- HyperLinkField.cs
- VersionedStreamOwner.cs
- InputBinder.cs
- WeakKeyDictionary.cs
- TimelineCollection.cs
- DocumentPageView.cs
- PartialTrustVisibleAssembliesSection.cs
- Decorator.cs
- RegularExpressionValidator.cs
- CursorInteropHelper.cs
- ExceptionCollection.cs
- SynchronousChannelMergeEnumerator.cs
- SignalGate.cs
- BitmapEffectDrawingContextState.cs
- HyperlinkAutomationPeer.cs
- FormsAuthenticationEventArgs.cs
- TreeNodeEventArgs.cs
- OutputCacheSettings.cs