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
- TableItemPatternIdentifiers.cs
- AnimationLayer.cs
- DataGridViewUtilities.cs
- BitmapSizeOptions.cs
- ServiceContractDetailViewControl.cs
- DnsPermission.cs
- SqlCacheDependencyDatabaseCollection.cs
- Lasso.cs
- Permission.cs
- ResolvedKeyFrameEntry.cs
- CriticalFinalizerObject.cs
- ImagingCache.cs
- Light.cs
- querybuilder.cs
- RequestValidator.cs
- WorkflowPersistenceContext.cs
- MediaContext.cs
- GroupLabel.cs
- ThicknessAnimationBase.cs
- HttpResponse.cs
- ColumnWidthChangingEvent.cs
- JsonDeserializer.cs
- ChtmlImageAdapter.cs
- PointLight.cs
- SizeChangedInfo.cs
- MailMessage.cs
- SectionUpdates.cs
- TextModifierScope.cs
- PathTooLongException.cs
- APCustomTypeDescriptor.cs
- _NativeSSPI.cs
- ManagementPath.cs
- X509Chain.cs
- _ScatterGatherBuffers.cs
- DataGridViewButtonColumn.cs
- Int32CollectionConverter.cs
- PKCS1MaskGenerationMethod.cs
- CreateParams.cs
- StringArrayConverter.cs
- ValueSerializerAttribute.cs
- DataSourceControl.cs
- DataGridViewCellConverter.cs
- FrameworkElementFactoryMarkupObject.cs
- CellTreeNodeVisitors.cs
- XamlBrushSerializer.cs
- GenericParameterDataContract.cs
- VirtualizingPanel.cs
- ChangeBlockUndoRecord.cs
- AsyncOperation.cs
- ConfigXmlDocument.cs
- SessionEndedEventArgs.cs
- MaskPropertyEditor.cs
- HwndStylusInputProvider.cs
- HtmlInputFile.cs
- DescendantBaseQuery.cs
- CqlWriter.cs
- StylusEditingBehavior.cs
- Form.cs
- ObjectDataSource.cs
- CellLabel.cs
- TimeSpanConverter.cs
- CurrencyManager.cs
- DataColumnPropertyDescriptor.cs
- RayHitTestParameters.cs
- MatrixCamera.cs
- DefaultPropertyAttribute.cs
- ManagedIStream.cs
- Int64.cs
- BitmapFrameDecode.cs
- RotationValidation.cs
- SQLResource.cs
- DES.cs
- TracedNativeMethods.cs
- BindingExpressionUncommonField.cs
- CommonDialog.cs
- Vector3DValueSerializer.cs
- WriteableBitmap.cs
- PenThread.cs
- PaginationProgressEventArgs.cs
- Int32AnimationUsingKeyFrames.cs
- TextRangeAdaptor.cs
- TreeNodeCollection.cs
- mediaeventargs.cs
- HttpRequest.cs
- DomainConstraint.cs
- DataSource.cs
- DataSvcMapFileSerializer.cs
- AffineTransform3D.cs
- InProcStateClientManager.cs
- ProfileParameter.cs
- BitmapCodecInfoInternal.cs
- RelationshipEndMember.cs
- GridEntry.cs
- XmlUnspecifiedAttribute.cs
- CompensableActivity.cs
- Point3DCollection.cs
- DataGridTableCollection.cs
- SafeLibraryHandle.cs
- ToolboxDataAttribute.cs
- Config.cs