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
- RootBrowserWindowAutomationPeer.cs
- SystemIPGlobalProperties.cs
- ErrorInfoXmlDocument.cs
- Parameter.cs
- ItemAutomationPeer.cs
- SmiEventSink_Default.cs
- IconHelper.cs
- HierarchicalDataTemplate.cs
- DataView.cs
- ArrayHelper.cs
- XmlHierarchicalDataSourceView.cs
- ArraySegment.cs
- ExpressionVisitor.cs
- SpotLight.cs
- JournalEntry.cs
- SequentialOutput.cs
- PopupRoot.cs
- SerializableAttribute.cs
- ControlPager.cs
- QilStrConcat.cs
- FlowLayout.cs
- EntityViewContainer.cs
- EtwTrackingParticipant.cs
- TextBlockAutomationPeer.cs
- FormViewUpdatedEventArgs.cs
- ErrorHandler.cs
- Activity.cs
- InputBinder.cs
- WeakHashtable.cs
- Currency.cs
- StringInfo.cs
- CacheMode.cs
- ColorTransformHelper.cs
- EllipseGeometry.cs
- User.cs
- SoapAttributes.cs
- RuntimeHelpers.cs
- Ipv6Element.cs
- XAMLParseException.cs
- HtmlElementEventArgs.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CurrentChangingEventArgs.cs
- GB18030Encoding.cs
- InlinedAggregationOperator.cs
- CompilationLock.cs
- DataGridViewSelectedColumnCollection.cs
- ImageDrawing.cs
- KerberosSecurityTokenProvider.cs
- ComponentEditorForm.cs
- WindowsListViewItemCheckBox.cs
- followingquery.cs
- QueryAccessibilityHelpEvent.cs
- UpdateProgress.cs
- CorrelationManager.cs
- NativeCompoundFileAPIs.cs
- LeafCellTreeNode.cs
- MemberDomainMap.cs
- CompressedStack.cs
- Nodes.cs
- GeneralTransform3D.cs
- ObjectViewFactory.cs
- GiveFeedbackEvent.cs
- SqlAliaser.cs
- BinaryUtilClasses.cs
- MobileControlBuilder.cs
- ActiveDocumentEvent.cs
- HttpApplicationFactory.cs
- Int64KeyFrameCollection.cs
- DummyDataSource.cs
- RoleGroupCollection.cs
- DataSourceListEditor.cs
- EventLogSession.cs
- ScriptResourceAttribute.cs
- WindowsSpinner.cs
- WCFServiceClientProxyGenerator.cs
- SwitchLevelAttribute.cs
- SystemWebCachingSectionGroup.cs
- ToolStripGrip.cs
- ProfileSettingsCollection.cs
- DnsEndpointIdentity.cs
- CanonicalFontFamilyReference.cs
- QueryOperator.cs
- TypedElement.cs
- ConstNode.cs
- SupportingTokenBindingElement.cs
- DataControlField.cs
- InputScope.cs
- CustomWebEventKey.cs
- StackSpiller.Generated.cs
- VBCodeProvider.cs
- SchemaImporter.cs
- DataGridViewRowEventArgs.cs
- DesignParameter.cs
- Italic.cs
- SystemWebSectionGroup.cs
- MarkupProperty.cs
- InfoCardService.cs
- RuntimeIdentifierPropertyAttribute.cs
- AuthenticationModuleElementCollection.cs
- XmlDataSource.cs