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 / ByteFacetDescriptionElement.cs / 1 / ByteFacetDescriptionElement.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 ByteFacetDescriptionElement : FacetDescriptionElement { public ByteFacetDescriptionElement(TypeElement type, string name) :base(type, name) { } public override EdmType FacetType { get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Byte); } } ///////////////////////////////////////////////////////////////////// // Attribute Handlers ////// Handler for the Default attribute /// /// xml reader currently positioned at Default attribute protected override void HandleDefaultAttribute(XmlReader reader) { byte value = 0; if (HandleByteAttribute(reader, ref value)) { DefaultValue = (Byte)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 ByteFacetDescriptionElement : FacetDescriptionElement { public ByteFacetDescriptionElement(TypeElement type, string name) :base(type, name) { } public override EdmType FacetType { get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Byte); } } ///////////////////////////////////////////////////////////////////// // Attribute Handlers ////// Handler for the Default attribute /// /// xml reader currently positioned at Default attribute protected override void HandleDefaultAttribute(XmlReader reader) { byte value = 0; if (HandleByteAttribute(reader, ref value)) { DefaultValue = (Byte)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
- NamespaceDecl.cs
- TargetConverter.cs
- BitmapScalingModeValidation.cs
- SchemaConstraints.cs
- NotImplementedException.cs
- UrlPropertyAttribute.cs
- SiteMapHierarchicalDataSourceView.cs
- ToolStripDropDownMenu.cs
- Setter.cs
- DependencyProperty.cs
- ContainerFilterService.cs
- BoundColumn.cs
- PackageRelationship.cs
- EncryptedData.cs
- XmlSchemaAttributeGroupRef.cs
- GridViewActionList.cs
- EventData.cs
- SymLanguageVendor.cs
- FactoryId.cs
- EntityDataSourceValidationException.cs
- DbProviderConfigurationHandler.cs
- ManipulationDeltaEventArgs.cs
- DefinitionBase.cs
- MapPathBasedVirtualPathProvider.cs
- CodeDirectiveCollection.cs
- PropertyGridView.cs
- EntityContainer.cs
- SessionStateSection.cs
- ParallelDesigner.xaml.cs
- SerializationEventsCache.cs
- NetWebProxyFinder.cs
- SignedInfo.cs
- recordstate.cs
- SqlTriggerAttribute.cs
- LinqDataView.cs
- DbConnectionInternal.cs
- StringUtil.cs
- Pkcs9Attribute.cs
- ProfessionalColorTable.cs
- TraceListeners.cs
- WindowsListViewItem.cs
- SafeMILHandle.cs
- FunctionCommandText.cs
- PasswordPropertyTextAttribute.cs
- InvalidPipelineStoreException.cs
- SettingsProperty.cs
- DependencyObjectProvider.cs
- EtwTrace.cs
- PolicyUnit.cs
- Point3DConverter.cs
- VerticalAlignConverter.cs
- AssociationTypeEmitter.cs
- ByteConverter.cs
- PlainXmlSerializer.cs
- Operand.cs
- XmlElementAttributes.cs
- Line.cs
- MetadataCacheItem.cs
- VisualTarget.cs
- ExtensionDataObject.cs
- RadioButtonPopupAdapter.cs
- InvalidProgramException.cs
- MdImport.cs
- XPathSingletonIterator.cs
- RawStylusInputCustomData.cs
- UserCancellationException.cs
- Point4DConverter.cs
- ObjectDataSourceMethodEventArgs.cs
- HtmlDocument.cs
- DrawingCollection.cs
- LocalizeDesigner.cs
- SqlInternalConnectionTds.cs
- IPipelineRuntime.cs
- SpeechRecognizer.cs
- IHttpResponseInternal.cs
- StateDesigner.LayoutSelectionGlyph.cs
- GotoExpression.cs
- ControlPaint.cs
- Track.cs
- MdiWindowListStrip.cs
- StrongNameHelpers.cs
- TimeEnumHelper.cs
- GuidConverter.cs
- ModelUtilities.cs
- ImageListStreamer.cs
- OleDbWrapper.cs
- ImportCatalogPart.cs
- RootProfilePropertySettingsCollection.cs
- Imaging.cs
- ResourcesChangeInfo.cs
- Vector3DAnimation.cs
- Matrix3D.cs
- VirtualizedContainerService.cs
- FocusTracker.cs
- MediaTimeline.cs
- FontSource.cs
- StringSorter.cs
- BitmapMetadataBlob.cs
- PixelShader.cs
- PermissionSet.cs