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 / IntegerFacetDescriptionElement.cs / 1 / IntegerFacetDescriptionElement.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 IntegerFacetDescriptionElement : FacetDescriptionElement
{
public IntegerFacetDescriptionElement(TypeElement type, string name)
:base(type, name)
{
}
public override EdmType FacetType
{
get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Int32); }
}
/////////////////////////////////////////////////////////////////////
// Attribute Handlers
///
/// Handler for the Default attribute
///
/// xml reader currently positioned at Default attribute
protected override void HandleDefaultAttribute(XmlReader reader)
{
int value = -1;
if (HandleIntAttribute(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 IntegerFacetDescriptionElement : FacetDescriptionElement
{
public IntegerFacetDescriptionElement(TypeElement type, string name)
:base(type, name)
{
}
public override EdmType FacetType
{
get { return MetadataItem.EdmProviderManifest.GetPrimitiveType(PrimitiveTypeKind.Int32); }
}
/////////////////////////////////////////////////////////////////////
// Attribute Handlers
///
/// Handler for the Default attribute
///
/// xml reader currently positioned at Default attribute
protected override void HandleDefaultAttribute(XmlReader reader)
{
int value = -1;
if (HandleIntAttribute(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
- PropertyGeneratedEventArgs.cs
- GraphicsPath.cs
- HtmlUtf8RawTextWriter.cs
- XamlReader.cs
- XsltException.cs
- Subset.cs
- SqlClientMetaDataCollectionNames.cs
- XmlAttribute.cs
- DeviceFilterDictionary.cs
- ZipIOBlockManager.cs
- Encoding.cs
- MaskedTextProvider.cs
- SafeIUnknown.cs
- HtmlInputReset.cs
- WarningException.cs
- ValidateNames.cs
- InputMethod.cs
- basecomparevalidator.cs
- QilValidationVisitor.cs
- InputProcessorProfilesLoader.cs
- DictionarySectionHandler.cs
- XamlPointCollectionSerializer.cs
- XamlSerializationHelper.cs
- BrowserInteropHelper.cs
- KeySpline.cs
- KeyNotFoundException.cs
- XmlDataImplementation.cs
- DataListComponentEditor.cs
- ThreadStateException.cs
- ListCollectionView.cs
- AutoResetEvent.cs
- WindowsSidIdentity.cs
- DbConnectionStringCommon.cs
- EnumMemberAttribute.cs
- AnnotationMap.cs
- CommentAction.cs
- XmlLangPropertyAttribute.cs
- ProxyWebPart.cs
- PaperSize.cs
- XmlMembersMapping.cs
- XmlSchemaAppInfo.cs
- TTSEvent.cs
- SymDocumentType.cs
- ContentPosition.cs
- SafeNativeMethods.cs
- ConfigurationManager.cs
- KeyedCollection.cs
- BaseParaClient.cs
- XPathParser.cs
- TextParagraphProperties.cs
- StylusLogic.cs
- ColumnMapCopier.cs
- Mouse.cs
- ValidationPropertyAttribute.cs
- SendingRequestEventArgs.cs
- XmlSerializerAssemblyAttribute.cs
- BindingSource.cs
- SerializationAttributes.cs
- SecurityCriticalDataForSet.cs
- ConsoleKeyInfo.cs
- _LoggingObject.cs
- ControlParameter.cs
- WebPartConnectionsDisconnectVerb.cs
- DocumentGrid.cs
- GlyphElement.cs
- StickyNoteAnnotations.cs
- TextRangeAdaptor.cs
- ListInitExpression.cs
- HtmlHead.cs
- WebCategoryAttribute.cs
- PageRouteHandler.cs
- ProcessHost.cs
- EventQueueState.cs
- Solver.cs
- PolyQuadraticBezierSegment.cs
- BindStream.cs
- DoubleAnimationBase.cs
- UrlAuthorizationModule.cs
- FlowLayoutPanel.cs
- GetPageCompletedEventArgs.cs
- ContentType.cs
- Geometry.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- FunctionUpdateCommand.cs
- RadioButtonStandardAdapter.cs
- TypeDescriptorContext.cs
- SapiGrammar.cs
- DetailsViewInsertEventArgs.cs
- CursorInteropHelper.cs
- HtmlImage.cs
- PeerObject.cs
- DataTableNewRowEvent.cs
- WindowClosedEventArgs.cs
- MetaType.cs
- ReliabilityContractAttribute.cs
- RuleInfoComparer.cs
- ColumnHeaderConverter.cs
- Maps.cs
- MultiSelectRootGridEntry.cs
- ExpandableObjectConverter.cs