Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Data / System / Data / Sql / SqlFacetAttribute.cs / 1 / SqlFacetAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //[....] //[....] //daltudov //[....] //beysims //[....] //vadimt //----------------------------------------------------------------------------- using System; namespace Microsoft.SqlServer.Server { [ AttributeUsage( AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.ReturnValue | AttributeTargets.Parameter, AllowMultiple = false, Inherited = false ) ] #if WINFSInternalOnly internal #else public #endif class SqlFacetAttribute: Attribute { private bool m_IsFixedLength; private int m_MaxSize; private int m_Scale; private int m_Precision; private bool m_IsNullable; // Is this a fixed size field? public bool IsFixedLength { get { return this.m_IsFixedLength; } set { this.m_IsFixedLength = value; } } // The maximum size of the field (in bytes or characters depending on the field type) // or -1 if the size can be unlimited. public int MaxSize { get { return this.m_MaxSize; } set { this.m_MaxSize = value; } } // Precision, only valid for numeric types. public int Precision { get { return this.m_Precision; } set { this.m_Precision = value; } } // Scale, only valid for numeric types. public int Scale { get { return this.m_Scale; } set { this.m_Scale = value; } } // Is this field nullable? public bool IsNullable { get { return this.m_IsNullable; } set { this.m_IsNullable = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //[....] //[....] //daltudov //[....] //beysims //[....] //vadimt //----------------------------------------------------------------------------- using System; namespace Microsoft.SqlServer.Server { [ AttributeUsage( AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.ReturnValue | AttributeTargets.Parameter, AllowMultiple = false, Inherited = false ) ] #if WINFSInternalOnly internal #else public #endif class SqlFacetAttribute: Attribute { private bool m_IsFixedLength; private int m_MaxSize; private int m_Scale; private int m_Precision; private bool m_IsNullable; // Is this a fixed size field? public bool IsFixedLength { get { return this.m_IsFixedLength; } set { this.m_IsFixedLength = value; } } // The maximum size of the field (in bytes or characters depending on the field type) // or -1 if the size can be unlimited. public int MaxSize { get { return this.m_MaxSize; } set { this.m_MaxSize = value; } } // Precision, only valid for numeric types. public int Precision { get { return this.m_Precision; } set { this.m_Precision = value; } } // Scale, only valid for numeric types. public int Scale { get { return this.m_Scale; } set { this.m_Scale = value; } } // Is this field nullable? public bool IsNullable { get { return this.m_IsNullable; } set { this.m_IsNullable = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebServiceAttribute.cs
- ChtmlImageAdapter.cs
- XmlReflectionMember.cs
- InternalControlCollection.cs
- DefaultEventAttribute.cs
- RotateTransform.cs
- AxHostDesigner.cs
- PropVariant.cs
- CreateUserErrorEventArgs.cs
- RegistrationServices.cs
- QueueProcessor.cs
- Table.cs
- returneventsaver.cs
- FixedSOMElement.cs
- ServiceMetadataContractBehavior.cs
- MultiSelectRootGridEntry.cs
- CodeEntryPointMethod.cs
- TTSEngineProxy.cs
- FontWeight.cs
- PageCodeDomTreeGenerator.cs
- SQLDecimal.cs
- Animatable.cs
- Stylus.cs
- FileNotFoundException.cs
- PathGeometry.cs
- FileDialog.cs
- TaskFormBase.cs
- InsufficientMemoryException.cs
- UpdateCompiler.cs
- BitmapEffectGroup.cs
- SqlTrackingService.cs
- CharStorage.cs
- ByeOperation11AsyncResult.cs
- BookmarkUndoUnit.cs
- PolyLineSegment.cs
- GuidelineSet.cs
- InfoCardPolicy.cs
- namescope.cs
- XmlSchemaProviderAttribute.cs
- DocumentStream.cs
- PrinterSettings.cs
- ExtendLockCommand.cs
- UnsafeNativeMethods.cs
- xmlglyphRunInfo.cs
- DataGridViewComboBoxCell.cs
- DbFunctionCommandTree.cs
- ItemsControlAutomationPeer.cs
- ImageConverter.cs
- TabItem.cs
- AccessibleObject.cs
- RoutedEventValueSerializer.cs
- AssemblyAttributesGoHere.cs
- WindowsStatic.cs
- SortKey.cs
- BordersPage.cs
- TreeViewImageKeyConverter.cs
- WorkflowOperationInvoker.cs
- EnumerableRowCollection.cs
- ByteAnimationBase.cs
- DataTrigger.cs
- Compiler.cs
- WindowsSspiNegotiation.cs
- DebuggerAttributes.cs
- BitmapInitialize.cs
- CounterCreationDataCollection.cs
- AlphabeticalEnumConverter.cs
- DataStreamFromComStream.cs
- HttpHeaderCollection.cs
- RefreshEventArgs.cs
- HeaderedContentControl.cs
- HandlerBase.cs
- ApplicationServicesHostFactory.cs
- EventMap.cs
- PeerResolver.cs
- ManagedIStream.cs
- TTSEngineTypes.cs
- ClientRuntimeConfig.cs
- parserscommon.cs
- XmlStringTable.cs
- RegionIterator.cs
- SafeNativeMethods.cs
- PeekCompletedEventArgs.cs
- Attributes.cs
- FormClosedEvent.cs
- XPathAncestorIterator.cs
- HandlerWithFactory.cs
- WebSysDefaultValueAttribute.cs
- diagnosticsswitches.cs
- Pen.cs
- SiteOfOriginPart.cs
- HttpInputStream.cs
- GradientBrush.cs
- LZCodec.cs
- DataGridDetailsPresenterAutomationPeer.cs
- DrawingGroup.cs
- SamlConstants.cs
- RepeaterItemCollection.cs
- SafeCoTaskMem.cs
- MenuItemCollection.cs
- ManipulationPivot.cs