Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / Sql / SqlFacetAttribute.cs / 1305376 / 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 ) ] public 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
- RelationshipEndCollection.cs
- AuthenticatedStream.cs
- AttributeSetAction.cs
- HtmlPhoneCallAdapter.cs
- KeyEvent.cs
- SecurityKeyIdentifierClause.cs
- AspNetHostingPermission.cs
- MenuItem.cs
- DynamicPropertyReader.cs
- CqlParserHelpers.cs
- NextPreviousPagerField.cs
- ManifestResourceInfo.cs
- WaveHeader.cs
- TransportationConfigurationTypeInstallComponent.cs
- BitmapFrameDecode.cs
- DataGridTextBoxColumn.cs
- ToolBarButton.cs
- ColumnTypeConverter.cs
- EpmAttributeNameBuilder.cs
- Touch.cs
- WebUtil.cs
- DataKey.cs
- Label.cs
- DiagnosticsConfiguration.cs
- BaseCodePageEncoding.cs
- ListDataBindEventArgs.cs
- RectangleGeometry.cs
- MultiByteCodec.cs
- SystemBrushes.cs
- Quad.cs
- CodeExpressionCollection.cs
- ConfigPathUtility.cs
- NonBatchDirectoryCompiler.cs
- SafePEFileHandle.cs
- SAPICategories.cs
- OleDbCommandBuilder.cs
- RouteParser.cs
- SplitterPanel.cs
- WindowsBrush.cs
- InboundActivityHelper.cs
- DataListGeneralPage.cs
- DelegatedStream.cs
- RegexFCD.cs
- ScrollItemPattern.cs
- ProxyHwnd.cs
- FormViewPageEventArgs.cs
- Vector3D.cs
- URLAttribute.cs
- FunctionImportMapping.cs
- IdentityValidationException.cs
- ImageBrush.cs
- RadioButtonStandardAdapter.cs
- EncryptedXml.cs
- TextPointer.cs
- DataGridViewHitTestInfo.cs
- ServiceHttpModule.cs
- XslNumber.cs
- NetPipeSectionData.cs
- RegexGroupCollection.cs
- ThemeInfoAttribute.cs
- XsdValidatingReader.cs
- LifetimeServices.cs
- PinnedBufferMemoryStream.cs
- WebPartConnectionsConnectVerb.cs
- CipherData.cs
- autovalidator.cs
- DisplayMemberTemplateSelector.cs
- FormsAuthenticationModule.cs
- Sql8ExpressionRewriter.cs
- RelatedPropertyManager.cs
- GridErrorDlg.cs
- odbcmetadatafactory.cs
- SchemaNamespaceManager.cs
- WebZone.cs
- RecognitionEventArgs.cs
- Span.cs
- TextPointerBase.cs
- XmlAttributes.cs
- WpfKnownTypeInvoker.cs
- DES.cs
- CapabilitiesRule.cs
- CommonObjectSecurity.cs
- CollectionViewGroup.cs
- URLString.cs
- DocumentOrderQuery.cs
- ParenExpr.cs
- CqlWriter.cs
- ConstraintCollection.cs
- wmiprovider.cs
- HttpProfileGroupBase.cs
- IItemContainerGenerator.cs
- SoapHeaderException.cs
- X509LogoTypeExtension.cs
- TransformConverter.cs
- ObjectQuery.cs
- RealizationContext.cs
- PathStreamGeometryContext.cs
- FixedSOMGroup.cs
- Converter.cs
- AutoResizedEvent.cs