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
- TextEditorMouse.cs
- JournalNavigationScope.cs
- CalendarDateRange.cs
- LZCodec.cs
- Enum.cs
- ProxyGenerator.cs
- SqlAliaser.cs
- ByteStorage.cs
- XmlSchemaSimpleContentExtension.cs
- IItemProperties.cs
- DifferencingCollection.cs
- SafeThemeHandle.cs
- ManagementClass.cs
- PointConverter.cs
- StyleXamlParser.cs
- bindurihelper.cs
- XmlSchemaValidationException.cs
- ClassHandlersStore.cs
- GenericAuthenticationEventArgs.cs
- ArraySortHelper.cs
- UndoEngine.cs
- WebReferencesBuildProvider.cs
- SkipStoryboardToFill.cs
- CollectionEditor.cs
- SourceSwitch.cs
- HtmlSelect.cs
- KeyboardNavigation.cs
- milexports.cs
- WorkflowRuntimeSection.cs
- ModelVisual3D.cs
- OptimalBreakSession.cs
- AppDomainProtocolHandler.cs
- XsdBuildProvider.cs
- VectorAnimationUsingKeyFrames.cs
- SinglePageViewer.cs
- ParameterReplacerVisitor.cs
- UnauthorizedAccessException.cs
- UnsupportedPolicyOptionsException.cs
- DateTime.cs
- ComplexObject.cs
- PropertyDescriptors.cs
- VScrollBar.cs
- UnsafeNativeMethods.cs
- DateTimeConstantAttribute.cs
- Baml2006ReaderContext.cs
- DynamicRendererThreadManager.cs
- ClientConfigurationSystem.cs
- _FixedSizeReader.cs
- EdmItemError.cs
- DoubleAnimationBase.cs
- PenLineJoinValidation.cs
- EncoderExceptionFallback.cs
- String.cs
- SeparatorAutomationPeer.cs
- Int16Storage.cs
- SectionVisual.cs
- TreeWalkHelper.cs
- sqlser.cs
- SatelliteContractVersionAttribute.cs
- Label.cs
- DependencyPropertyKey.cs
- PerformanceCounterManager.cs
- Rotation3DAnimationUsingKeyFrames.cs
- GetPageCompletedEventArgs.cs
- SharedPerformanceCounter.cs
- OutputCacheModule.cs
- CodeIdentifiers.cs
- OleDbInfoMessageEvent.cs
- ControlPropertyNameConverter.cs
- ByValueEqualityComparer.cs
- precedingquery.cs
- DrawTreeNodeEventArgs.cs
- ExtractCollection.cs
- OutputCacheProfileCollection.cs
- Span.cs
- ProfessionalColorTable.cs
- StrongNameUtility.cs
- MultipartContentParser.cs
- CategoryState.cs
- TimeEnumHelper.cs
- RtfControlWordInfo.cs
- DoubleAnimationUsingPath.cs
- ConfigurationElementCollection.cs
- GlobalItem.cs
- Event.cs
- EncoderBestFitFallback.cs
- WindowsFormsSynchronizationContext.cs
- MenuRendererClassic.cs
- Crc32.cs
- PersonalizationProviderCollection.cs
- ObjectKeyFrameCollection.cs
- XmlValueConverter.cs
- BoundPropertyEntry.cs
- Rule.cs
- HttpModuleAction.cs
- View.cs
- PackagingUtilities.cs
- EmptyEnumerator.cs
- XmlQueryStaticData.cs
- MetadataException.cs