Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / IntegerFacetDescriptionElement.cs / 1305376 / 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
- NamespaceQuery.cs
- Cursors.cs
- DBCommandBuilder.cs
- EdmPropertyAttribute.cs
- SmiEventSink_DeferedProcessing.cs
- StoreContentChangedEventArgs.cs
- DocumentReferenceCollection.cs
- WebPartConnection.cs
- BypassElementCollection.cs
- FigureParaClient.cs
- HtmlInputCheckBox.cs
- BorderSidesEditor.cs
- BamlLocalizer.cs
- SourceFilter.cs
- FramingChannels.cs
- SHA1CryptoServiceProvider.cs
- SQLMembershipProvider.cs
- HtmlTextViewAdapter.cs
- CodeTypeParameter.cs
- ModelItemDictionary.cs
- StateInitializationDesigner.cs
- PersistChildrenAttribute.cs
- sqlstateclientmanager.cs
- baseaxisquery.cs
- XPathSelectionIterator.cs
- MatrixCamera.cs
- RawMouseInputReport.cs
- DescendantQuery.cs
- OleStrCAMarshaler.cs
- WindowsTitleBar.cs
- FontUnit.cs
- DataColumnSelectionConverter.cs
- IteratorFilter.cs
- EDesignUtil.cs
- TreeView.cs
- TextElementEnumerator.cs
- AmbientLight.cs
- DataGridViewCellEventArgs.cs
- ResourceManagerWrapper.cs
- MenuEventArgs.cs
- RecordConverter.cs
- NotImplementedException.cs
- XmlSchemaValidationException.cs
- WebPartActionVerb.cs
- ParseHttpDate.cs
- MethodCallConverter.cs
- DispatcherExceptionEventArgs.cs
- DataGridRowAutomationPeer.cs
- HtmlImage.cs
- TypeConverterHelper.cs
- DeferredRunTextReference.cs
- MetadataArtifactLoaderResource.cs
- SiteMap.cs
- SmiContextFactory.cs
- WebPartEditorApplyVerb.cs
- StringFormat.cs
- ObjectListCommand.cs
- TreeViewItem.cs
- SecuritySessionSecurityTokenProvider.cs
- TimersDescriptionAttribute.cs
- CompositeFontParser.cs
- MissingMemberException.cs
- Crc32Helper.cs
- HttpHeaderCollection.cs
- TraversalRequest.cs
- DataKeyArray.cs
- XmlWhitespace.cs
- DocumentOrderComparer.cs
- CodeStatement.cs
- HttpCachePolicyWrapper.cs
- ServiceObjectContainer.cs
- RoutedEvent.cs
- StreamUpdate.cs
- MasterPage.cs
- XmlHierarchicalEnumerable.cs
- MatrixAnimationUsingKeyFrames.cs
- AspNetSynchronizationContext.cs
- TextBlock.cs
- PeerApplication.cs
- ClientRoleProvider.cs
- StreamSecurityUpgradeAcceptorBase.cs
- GeometryCollection.cs
- Brushes.cs
- ServiceDescriptionImporter.cs
- ListView.cs
- RotateTransform.cs
- smtppermission.cs
- TypedElement.cs
- BackEase.cs
- WebBrowser.cs
- ThreadInterruptedException.cs
- CookielessHelper.cs
- StrongName.cs
- ApplicationId.cs
- UrlMappingCollection.cs
- ErrorTableItemStyle.cs
- SoapIncludeAttribute.cs
- ColorBlend.cs
- WindowsPrincipal.cs
- UserValidatedEventArgs.cs