Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / ByteFacetDescriptionElement.cs / 2 / 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
- NativeMethods.cs
- RangeExpression.cs
- ActivationServices.cs
- RightsManagementPermission.cs
- ObjectSet.cs
- SharedStream.cs
- Events.cs
- TextDecorationCollection.cs
- MimeReflector.cs
- WebServiceClientProxyGenerator.cs
- CommandBindingCollection.cs
- BrowserDefinition.cs
- Odbc32.cs
- ParameterBinding.cs
- CounterCreationDataCollection.cs
- PenContexts.cs
- WmlLiteralTextAdapter.cs
- AuthenticationModuleElementCollection.cs
- ToolStripItemTextRenderEventArgs.cs
- ServiceHttpHandlerFactory.cs
- RotateTransform.cs
- DataComponentMethodGenerator.cs
- storepermissionattribute.cs
- SafeEventLogReadHandle.cs
- ExtensionDataReader.cs
- SharedStatics.cs
- followingquery.cs
- HtmlToClrEventProxy.cs
- ToolStripComboBox.cs
- VersionValidator.cs
- StagingAreaInputItem.cs
- ConnectionPoint.cs
- ClassData.cs
- QuestionEventArgs.cs
- NotifyParentPropertyAttribute.cs
- AddressHeaderCollectionElement.cs
- UIPermission.cs
- ListViewTableRow.cs
- SqlTypeSystemProvider.cs
- GlyphInfoList.cs
- DbConnectionFactory.cs
- ImageList.cs
- securestring.cs
- CompilerState.cs
- BypassElementCollection.cs
- TextDecorationUnitValidation.cs
- CheckBoxAutomationPeer.cs
- DrawingDrawingContext.cs
- ProcessInfo.cs
- CompositeActivityValidator.cs
- OleDbParameter.cs
- XPathNodeIterator.cs
- Listbox.cs
- DBNull.cs
- DataSourceSelectArguments.cs
- RepeatButtonAutomationPeer.cs
- InplaceBitmapMetadataWriter.cs
- DataGridViewRowsAddedEventArgs.cs
- TakeQueryOptionExpression.cs
- ListBindableAttribute.cs
- HttpListenerRequest.cs
- AsyncStreamReader.cs
- BitmapCacheBrush.cs
- DataGridViewCellConverter.cs
- HttpDebugHandler.cs
- mediapermission.cs
- CodeSnippetStatement.cs
- IfAction.cs
- SettingsPropertyValue.cs
- CancelEventArgs.cs
- UnsafeNativeMethods.cs
- UnicastIPAddressInformationCollection.cs
- SystemBrushes.cs
- WebDescriptionAttribute.cs
- TrackingProfile.cs
- TextElementEnumerator.cs
- DataObjectPastingEventArgs.cs
- Axis.cs
- ProtocolsConfigurationEntry.cs
- NestPullup.cs
- GeneralEndpointIdentity.cs
- SortedDictionary.cs
- ParallelQuery.cs
- safePerfProviderHandle.cs
- BamlRecordWriter.cs
- InvalidDataContractException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- XPathScanner.cs
- SchemaImporterExtension.cs
- FormView.cs
- WebPartCollection.cs
- ItemDragEvent.cs
- CallSiteHelpers.cs
- MenuItemBindingCollection.cs
- SignatureHelper.cs
- InertiaExpansionBehavior.cs
- MachineKeyConverter.cs
- StorageTypeMapping.cs
- ImageDrawing.cs
- TextDecorationCollection.cs