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
- GridViewColumn.cs
- RuleDefinitions.cs
- ModelEditingScope.cs
- BufferAllocator.cs
- AnimationLayer.cs
- CodeStatementCollection.cs
- ClientSponsor.cs
- CacheEntry.cs
- SqlBulkCopyColumnMapping.cs
- Trace.cs
- BufferedWebEventProvider.cs
- CapacityStreamGeometryContext.cs
- UnmanagedMemoryStreamWrapper.cs
- UpDownEvent.cs
- SQLInt32.cs
- ControlLocalizer.cs
- Types.cs
- Matrix.cs
- IntegerValidatorAttribute.cs
- TreeNode.cs
- FileSystemWatcher.cs
- ClientTargetSection.cs
- MethodRental.cs
- SolidBrush.cs
- XamlLoadErrorInfo.cs
- SafeHandles.cs
- KnownTypes.cs
- CodeMemberMethod.cs
- XPathAxisIterator.cs
- WCFServiceClientProxyGenerator.cs
- XmlSchemaSimpleType.cs
- safePerfProviderHandle.cs
- AdornerDecorator.cs
- SQLMembershipProvider.cs
- EqualityComparer.cs
- DataServiceEntityAttribute.cs
- AssociatedControlConverter.cs
- ConfigurationStrings.cs
- CommonRemoteMemoryBlock.cs
- ThreadSafeList.cs
- AdornerLayer.cs
- ResourceReferenceExpression.cs
- DCSafeHandle.cs
- DoubleAnimationUsingPath.cs
- StrokeNode.cs
- DataBindingCollection.cs
- ToolStripSeparator.cs
- StrokeCollection2.cs
- PanelContainerDesigner.cs
- GetLedgerRequest.cs
- updateconfighost.cs
- WindowsToolbar.cs
- Encoder.cs
- _PooledStream.cs
- Brush.cs
- DictionaryEntry.cs
- TableSectionStyle.cs
- RegexReplacement.cs
- WmlCalendarAdapter.cs
- PropertyGridCommands.cs
- coordinatorfactory.cs
- WebPartEditVerb.cs
- CompositeFontFamily.cs
- GenericPrincipal.cs
- CodeConditionStatement.cs
- TimeIntervalCollection.cs
- AttributeAction.cs
- QilCloneVisitor.cs
- ThicknessConverter.cs
- BuildManager.cs
- TypeExtensions.cs
- DocumentPageHost.cs
- XslException.cs
- TemplateBindingExpression.cs
- GeneralTransform2DTo3D.cs
- TextServicesCompartmentContext.cs
- Match.cs
- Page.cs
- ProgressBar.cs
- FixedStringLookup.cs
- EventNotify.cs
- DrawListViewSubItemEventArgs.cs
- FormsIdentity.cs
- ThreadPool.cs
- ToolStripDropDownClosingEventArgs.cs
- AnimationException.cs
- ExtensibleClassFactory.cs
- DataColumnMapping.cs
- InlineUIContainer.cs
- PrinterResolution.cs
- SynchronousChannelMergeEnumerator.cs
- DataGridCellsPanel.cs
- XmlResolver.cs
- SchemaMapping.cs
- Encoder.cs
- PostBackOptions.cs
- DerivedKeySecurityTokenStub.cs
- MembershipValidatePasswordEventArgs.cs
- DocumentSignatureManager.cs
- BackEase.cs