Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / BooleanFacetDescriptionElement.cs / 1305376 / BooleanFacetDescriptionElement.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 BooleanFacetDescriptionElement : FacetDescriptionElement { public BooleanFacetDescriptionElement(TypeElement type, string name) :base(type, name) { } public override EdmType FacetType { get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Boolean); } } ///////////////////////////////////////////////////////////////////// // Attribute Handlers ////// Handler for the Default attribute /// /// xml reader currently positioned at Default attribute protected override void HandleDefaultAttribute(XmlReader reader) { bool value = false; if (HandleBoolAttribute(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 BooleanFacetDescriptionElement : FacetDescriptionElement { public BooleanFacetDescriptionElement(TypeElement type, string name) :base(type, name) { } public override EdmType FacetType { get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Boolean); } } ///////////////////////////////////////////////////////////////////// // Attribute Handlers ////// Handler for the Default attribute /// /// xml reader currently positioned at Default attribute protected override void HandleDefaultAttribute(XmlReader reader) { bool value = false; if (HandleBoolAttribute(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
- dataprotectionpermission.cs
- TargetControlTypeCache.cs
- NullableConverter.cs
- DesignerEventService.cs
- TCPClient.cs
- DBConnectionString.cs
- MenuItemStyle.cs
- AutoGeneratedFieldProperties.cs
- NativeMethods.cs
- WorkItem.cs
- NoneExcludedImageIndexConverter.cs
- PositiveTimeSpanValidatorAttribute.cs
- NativeObjectSecurity.cs
- WebPartVerbsEventArgs.cs
- DbProviderManifest.cs
- StructuredProperty.cs
- DataKeyArray.cs
- HtmlTextArea.cs
- WebRequestModuleElementCollection.cs
- ToolStripManager.cs
- GridToolTip.cs
- xsdvalidator.cs
- SimpleType.cs
- ExpiredSecurityTokenException.cs
- ViewgenGatekeeper.cs
- XmlSchemaAttributeGroupRef.cs
- QueryCacheEntry.cs
- Scene3D.cs
- SqlMultiplexer.cs
- Rotation3DAnimation.cs
- ResourcePermissionBaseEntry.cs
- BuilderInfo.cs
- EpmSourceTree.cs
- SplashScreenNativeMethods.cs
- SymbolType.cs
- DataTableTypeConverter.cs
- WorkflowServiceHost.cs
- ContentDisposition.cs
- TreeViewImageIndexConverter.cs
- XomlSerializationHelpers.cs
- KnownTypesHelper.cs
- SqlDataAdapter.cs
- AutomationPeer.cs
- TextAction.cs
- FormatConvertedBitmap.cs
- OracleConnectionStringBuilder.cs
- ConfigXmlText.cs
- ChannelManagerHelpers.cs
- XmlSecureResolver.cs
- DataKeyArray.cs
- ProjectionPruner.cs
- TrackingWorkflowEventArgs.cs
- RTTrackingProfile.cs
- NumberAction.cs
- SecureUICommand.cs
- InternalConfigRoot.cs
- _PooledStream.cs
- TextElementEditingBehaviorAttribute.cs
- ConsoleKeyInfo.cs
- RouteParameter.cs
- StreamProxy.cs
- NativeMethods.cs
- AccessDataSource.cs
- InputDevice.cs
- TreeNodeCollectionEditor.cs
- Int64Storage.cs
- MessageQueue.cs
- Cursors.cs
- CssTextWriter.cs
- Mappings.cs
- ipaddressinformationcollection.cs
- SolidColorBrush.cs
- WorkflowOperationErrorHandler.cs
- TextBreakpoint.cs
- MemberPathMap.cs
- ProxyAttribute.cs
- ItemDragEvent.cs
- X509RawDataKeyIdentifierClause.cs
- EncryptedPackageFilter.cs
- SchemaObjectWriter.cs
- ImportContext.cs
- TcpServerChannel.cs
- EqualityComparer.cs
- DesignerEditorPartChrome.cs
- RangeContentEnumerator.cs
- KnownBoxes.cs
- OdbcError.cs
- Menu.cs
- TextTrailingWordEllipsis.cs
- FormClosingEvent.cs
- AppDomainAttributes.cs
- XhtmlStyleClass.cs
- Translator.cs
- MouseEvent.cs
- FixedNode.cs
- RadioButtonStandardAdapter.cs
- TextViewBase.cs
- RuleSettingsCollection.cs
- XmlArrayItemAttributes.cs
- ConfigurationSectionGroup.cs