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
- SqlInternalConnectionSmi.cs
- DebugHandleTracker.cs
- CodeBinaryOperatorExpression.cs
- DurationConverter.cs
- XmlCompatibilityReader.cs
- SplitterEvent.cs
- HttpRuntimeSection.cs
- Int64AnimationUsingKeyFrames.cs
- MethodImplAttribute.cs
- BlurEffect.cs
- EntityTransaction.cs
- FlowPosition.cs
- DesignerView.Commands.cs
- TrackBar.cs
- KeySplineConverter.cs
- PageAdapter.cs
- ScrollEvent.cs
- Control.cs
- MatrixAnimationUsingKeyFrames.cs
- TypeHelper.cs
- JsonServiceDocumentSerializer.cs
- DrawingCollection.cs
- EntityWrapperFactory.cs
- SchemaNames.cs
- DataControlButton.cs
- LoadedOrUnloadedOperation.cs
- ToolboxItemAttribute.cs
- HttpResponseWrapper.cs
- NumericPagerField.cs
- WebConfigurationHost.cs
- XmlSchemaAppInfo.cs
- CodeAttachEventStatement.cs
- FileReader.cs
- AudioBase.cs
- Rect.cs
- UriSection.cs
- FrameworkElementAutomationPeer.cs
- CodeThrowExceptionStatement.cs
- TraceFilter.cs
- CodeDirectoryCompiler.cs
- SQLInt32Storage.cs
- ColorContextHelper.cs
- QilGenerator.cs
- ValidationUtility.cs
- SHA1CryptoServiceProvider.cs
- RegexWriter.cs
- httpapplicationstate.cs
- DataTransferEventArgs.cs
- ResourceDescriptionAttribute.cs
- TextDocumentView.cs
- DateTimePicker.cs
- HttpApplication.cs
- ReferenceConverter.cs
- DisposableCollectionWrapper.cs
- ObjectQuery.cs
- ColumnCollectionEditor.cs
- ImmComposition.cs
- TaskHelper.cs
- XmlDocumentFragment.cs
- DataGridViewCell.cs
- ParameterSubsegment.cs
- VisualStyleInformation.cs
- ProviderBase.cs
- WebPartAuthorizationEventArgs.cs
- XamlBrushSerializer.cs
- EventListenerClientSide.cs
- SynchronizedInputPattern.cs
- SqlCommandBuilder.cs
- XmlCharCheckingReader.cs
- MachineKeyConverter.cs
- ChannelSinkStacks.cs
- Pens.cs
- _NestedMultipleAsyncResult.cs
- PickBranch.cs
- InputBinder.cs
- SingleAnimationUsingKeyFrames.cs
- ClassGenerator.cs
- Query.cs
- WorkflowTerminatedException.cs
- AspNetHostingPermission.cs
- Quaternion.cs
- SqlBuffer.cs
- PageAdapter.cs
- EntityDataSourceContextDisposingEventArgs.cs
- CompilerInfo.cs
- VersionConverter.cs
- DataGridCellsPanel.cs
- ResourceIDHelper.cs
- VerificationAttribute.cs
- SafeSecurityHelper.cs
- LabelEditEvent.cs
- AuthenticationService.cs
- Cursor.cs
- DataServiceSaveChangesEventArgs.cs
- FontUnitConverter.cs
- WmlPageAdapter.cs
- BoolLiteral.cs
- NameTable.cs
- DelayedRegex.cs
- ExpandCollapseProviderWrapper.cs