Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- AudioLevelUpdatedEventArgs.cs
- SecurityTokenValidationException.cs
- DataGridViewCellParsingEventArgs.cs
- ContextMenuService.cs
- Group.cs
- NotConverter.cs
- SimpleTypeResolver.cs
- PrintDialog.cs
- FormConverter.cs
- HebrewCalendar.cs
- NetworkStream.cs
- Internal.cs
- StringUtil.cs
- TransactionFlowBindingElementImporter.cs
- Common.cs
- HandlerMappingMemo.cs
- Utilities.cs
- sqlser.cs
- ConnectionConsumerAttribute.cs
- ListMarkerLine.cs
- TextTreeTextBlock.cs
- MaskedTextBox.cs
- ResourceAttributes.cs
- XmlComment.cs
- SqlServer2KCompatibilityAnnotation.cs
- RoleManagerSection.cs
- ConfigXmlSignificantWhitespace.cs
- EventProviderWriter.cs
- linebase.cs
- PageClientProxyGenerator.cs
- xmlglyphRunInfo.cs
- XPathItem.cs
- InputLangChangeRequestEvent.cs
- ConnectionInterfaceCollection.cs
- SQLDecimal.cs
- ServerType.cs
- Inflater.cs
- WpfPayload.cs
- SafeNativeMethods.cs
- MdiWindowListStrip.cs
- CommonProperties.cs
- TextRunCacheImp.cs
- SourceExpressionException.cs
- BitSet.cs
- HtmlPhoneCallAdapter.cs
- XmlSerializerAssemblyAttribute.cs
- _SslSessionsCache.cs
- HttpDictionary.cs
- TypeSystem.cs
- BindingNavigator.cs
- PropertyIDSet.cs
- AnnotationHighlightLayer.cs
- ItemCollection.cs
- SiteMapHierarchicalDataSourceView.cs
- EncoderBestFitFallback.cs
- RoutedCommand.cs
- XmlSchemaImporter.cs
- KeySpline.cs
- TransportListener.cs
- WebConfigurationHostFileChange.cs
- WebDescriptionAttribute.cs
- Converter.cs
- RequestUriProcessor.cs
- AvTraceDetails.cs
- KnownTypesProvider.cs
- XmlNodeList.cs
- NestedContainer.cs
- HttpCookieCollection.cs
- DataFormats.cs
- QilParameter.cs
- Int32AnimationUsingKeyFrames.cs
- TableParaClient.cs
- ToolBarPanel.cs
- SignedXml.cs
- SiteMapNode.cs
- LineServices.cs
- _LocalDataStoreMgr.cs
- DBCommand.cs
- PassportAuthenticationModule.cs
- propertytag.cs
- TableCellCollection.cs
- RijndaelManagedTransform.cs
- RectAnimationBase.cs
- BamlRecordHelper.cs
- CaseInsensitiveHashCodeProvider.cs
- QilInvokeLateBound.cs
- NavigationPropertyEmitter.cs
- Message.cs
- SafeViewOfFileHandle.cs
- ILGenerator.cs
- TextOutput.cs
- DataColumnMappingCollection.cs
- InterleavedZipPartStream.cs
- StringAttributeCollection.cs
- WriteableOnDemandStream.cs
- SqlDataSourceConfigureSortForm.cs
- LinearGradientBrush.cs
- ConditionalAttribute.cs
- ObjectDataSourceDisposingEventArgs.cs
- ToolStripContentPanelRenderEventArgs.cs