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
- CollectionViewSource.cs
- BinaryKeyIdentifierClause.cs
- PenLineCapValidation.cs
- XmlCharCheckingReader.cs
- AssemblyCollection.cs
- IteratorFilter.cs
- DispatcherFrame.cs
- HMACSHA256.cs
- UpdateCommand.cs
- RepeatInfo.cs
- DesignerGenericWebPart.cs
- PropertyConverter.cs
- SQLMembershipProvider.cs
- XmlSchemaException.cs
- CookieParameter.cs
- HtmlHead.cs
- SoapSchemaImporter.cs
- MulticastOption.cs
- DifferencingCollection.cs
- SspiWrapper.cs
- TextEffect.cs
- TextTabProperties.cs
- WinEventWrap.cs
- XPathNodeList.cs
- WorkerRequest.cs
- ZipIOFileItemStream.cs
- CellTreeSimplifier.cs
- RoleManagerEventArgs.cs
- PermissionSet.cs
- OdbcConnectionFactory.cs
- NegotiationTokenProvider.cs
- PermissionAttributes.cs
- PropertyFilterAttribute.cs
- AspCompat.cs
- Normalization.cs
- ColumnMapTranslator.cs
- DataGridRowEventArgs.cs
- SingleStorage.cs
- HttpSysSettings.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- UnknownBitmapEncoder.cs
- RenderContext.cs
- CommonDialog.cs
- XmlExtensionFunction.cs
- AppearanceEditorPart.cs
- WebZone.cs
- X500Name.cs
- XmlSchemaAnnotated.cs
- ListControlConvertEventArgs.cs
- ParenthesizePropertyNameAttribute.cs
- NotConverter.cs
- XmlCharCheckingReader.cs
- XmlNotation.cs
- OneWayChannelFactory.cs
- Grant.cs
- Calendar.cs
- AppDomainProtocolHandler.cs
- Cursor.cs
- ChannelPoolSettings.cs
- DynamicEndpoint.cs
- NamespaceCollection.cs
- EllipseGeometry.cs
- HtmlFormWrapper.cs
- IndexerNameAttribute.cs
- EventLogPermissionEntry.cs
- SignatureToken.cs
- MessageQueue.cs
- DataBinding.cs
- CellLabel.cs
- ProgressBarHighlightConverter.cs
- ButtonPopupAdapter.cs
- PackageFilter.cs
- xdrvalidator.cs
- LockCookie.cs
- AssemblyAttributes.cs
- ProxyWebPartConnectionCollection.cs
- ConsumerConnectionPointCollection.cs
- RepeaterItem.cs
- CacheManager.cs
- shaperfactoryquerycacheentry.cs
- GradientSpreadMethodValidation.cs
- DynamicPropertyReader.cs
- WindowInteractionStateTracker.cs
- ProviderUtil.cs
- GroupItemAutomationPeer.cs
- TCPListener.cs
- Exceptions.cs
- MappingException.cs
- SqlIdentifier.cs
- TextView.cs
- DesignTimeParseData.cs
- processwaithandle.cs
- BindableAttribute.cs
- InkSerializer.cs
- ContextStaticAttribute.cs
- HtmlHead.cs
- BuildManager.cs
- ContextMenu.cs
- MessageDecoder.cs
- Encoding.cs