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 / BooleanFacetDescriptionElement.cs / 1 / 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
- IgnoreFileBuildProvider.cs
- ProcessHostConfigUtils.cs
- DependencySource.cs
- CompilerWrapper.cs
- ExpressionDumper.cs
- UIElementParagraph.cs
- CachingHintValidation.cs
- XmlValueConverter.cs
- TableLayoutSettingsTypeConverter.cs
- storagemappingitemcollection.viewdictionary.cs
- IUnknownConstantAttribute.cs
- PropertyFilterAttribute.cs
- MetadataArtifactLoaderFile.cs
- HelpEvent.cs
- JsonQueryStringConverter.cs
- ObjectStateManagerMetadata.cs
- SplashScreenNativeMethods.cs
- RuleConditionDialog.Designer.cs
- TraceContextRecord.cs
- TextEncodedRawTextWriter.cs
- DataServiceHost.cs
- CompoundFileDeflateTransform.cs
- WeakReferenceEnumerator.cs
- _KerberosClient.cs
- _RequestCacheProtocol.cs
- ChangeBlockUndoRecord.cs
- GeometryModel3D.cs
- TemplateBaseAction.cs
- Util.cs
- SqlTransaction.cs
- InvokerUtil.cs
- OdbcConnectionPoolProviderInfo.cs
- DataSourceCache.cs
- HttpWebResponse.cs
- TypeDependencyAttribute.cs
- XsltException.cs
- GeometryModel3D.cs
- NullRuntimeConfig.cs
- AuthenticationModulesSection.cs
- MemberHolder.cs
- uribuilder.cs
- ElementUtil.cs
- FixedSOMSemanticBox.cs
- WSTrustDec2005.cs
- MatchAttribute.cs
- PeerTransportBindingElement.cs
- Range.cs
- ZipIOBlockManager.cs
- UIElement.cs
- CodeConstructor.cs
- EmbeddedMailObject.cs
- SolidBrush.cs
- XmlSchema.cs
- MediaContext.cs
- StorageEntitySetMapping.cs
- IsolatedStoragePermission.cs
- StateWorkerRequest.cs
- DbReferenceCollection.cs
- WebHttpSecurity.cs
- Control.cs
- DataAccessException.cs
- UriSection.cs
- ContractMapping.cs
- Int16.cs
- CodePropertyReferenceExpression.cs
- GestureRecognizer.cs
- WindowsRegion.cs
- Label.cs
- IisTraceWebEventProvider.cs
- ServiceThrottlingElement.cs
- DateTimeAutomationPeer.cs
- CompositeCollectionView.cs
- MappingSource.cs
- TableChangeProcessor.cs
- BitmapEncoder.cs
- EntityViewGenerationAttribute.cs
- XMLUtil.cs
- Stylus.cs
- LoginCancelEventArgs.cs
- CodeAssignStatement.cs
- _HeaderInfoTable.cs
- HttpTransportSecurityElement.cs
- PortCache.cs
- QuotedStringFormatReader.cs
- CellTreeNode.cs
- LinqDataSourceStatusEventArgs.cs
- Validator.cs
- util.cs
- TimestampInformation.cs
- DiffuseMaterial.cs
- BlurEffect.cs
- RestrictedTransactionalPackage.cs
- Timeline.cs
- PageParserFilter.cs
- GregorianCalendar.cs
- loginstatus.cs
- RegexWorker.cs
- InterleavedZipPartStream.cs
- SqlClientPermission.cs
- CodeExpressionStatement.cs