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
- TableCellsCollectionEditor.cs
- SamlAdvice.cs
- DataListItemCollection.cs
- NonNullItemCollection.cs
- NetworkInformationException.cs
- COM2ComponentEditor.cs
- ServicePointManager.cs
- DataBinder.cs
- IResourceProvider.cs
- SmiEventStream.cs
- FixedPageProcessor.cs
- DataGridPagerStyle.cs
- SizeChangedEventArgs.cs
- ManualResetEvent.cs
- ObjectItemAssemblyLoader.cs
- GenericTypeParameterConverter.cs
- NominalTypeEliminator.cs
- DataGridViewRowPrePaintEventArgs.cs
- AsymmetricAlgorithm.cs
- Region.cs
- Canvas.cs
- EmbeddedMailObject.cs
- ToolStripSystemRenderer.cs
- HttpProfileBase.cs
- SerialPort.cs
- XmlCharacterData.cs
- ExceptQueryOperator.cs
- DataGridViewDataErrorEventArgs.cs
- ColumnWidthChangedEvent.cs
- DoWorkEventArgs.cs
- XmlElementAttributes.cs
- ReadWriteSpinLock.cs
- C14NUtil.cs
- indexingfiltermarshaler.cs
- BooleanConverter.cs
- WebPartCatalogAddVerb.cs
- OrderedDictionary.cs
- ListViewItemSelectionChangedEvent.cs
- PerfCounters.cs
- Util.cs
- StringCollection.cs
- DocumentViewerHelper.cs
- BinaryObjectReader.cs
- ComplexType.cs
- ViewDesigner.cs
- BinaryConverter.cs
- ArrayListCollectionBase.cs
- ImageCollectionEditor.cs
- CheckPair.cs
- WebReferencesBuildProvider.cs
- ToolStripItem.cs
- XmlSortKey.cs
- ColumnMapVisitor.cs
- ControlDesigner.cs
- InkSerializer.cs
- SmiTypedGetterSetter.cs
- ExpressionVisitor.cs
- Typeface.cs
- BamlRecords.cs
- WindowsListViewGroupHelper.cs
- DocumentPage.cs
- XmlSchemaValidationException.cs
- CheckPair.cs
- XPathScanner.cs
- NativeMethods.cs
- BamlStream.cs
- PersistenceProviderBehavior.cs
- MsmqInputChannelListenerBase.cs
- BindingExpressionBase.cs
- DoubleKeyFrameCollection.cs
- httpstaticobjectscollection.cs
- OpCodes.cs
- BaseTemplateBuildProvider.cs
- FullTextLine.cs
- TextViewBase.cs
- AuthenticateEventArgs.cs
- FontFaceLayoutInfo.cs
- SystemResourceHost.cs
- ListBoxItemAutomationPeer.cs
- DataControlButton.cs
- AttributeQuery.cs
- Logging.cs
- CodeAccessSecurityEngine.cs
- NullableDecimalMinMaxAggregationOperator.cs
- UpDownEvent.cs
- TreeNodeStyleCollection.cs
- CheckBoxStandardAdapter.cs
- Certificate.cs
- WebBrowsableAttribute.cs
- FormViewUpdateEventArgs.cs
- ConnectionsZone.cs
- ConfigUtil.cs
- AsymmetricKeyExchangeFormatter.cs
- AttachedAnnotation.cs
- PostBackTrigger.cs
- SerialPort.cs
- DateTimeUtil.cs
- FontTypeConverter.cs
- SerializationEventsCache.cs
- SecurityManager.cs