Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ChannelTerminatedException.cs
- CursorConverter.cs
- KnownTypesProvider.cs
- followingsibling.cs
- TranslateTransform3D.cs
- SessionStateContainer.cs
- Converter.cs
- JoinCqlBlock.cs
- PropertyGridEditorPart.cs
- TreeViewImageIndexConverter.cs
- SubMenuStyle.cs
- UnsafeNativeMethods.cs
- XmlCDATASection.cs
- ApplicationActivator.cs
- SplineKeyFrames.cs
- Int16AnimationBase.cs
- DrawingAttributeSerializer.cs
- ScriptingJsonSerializationSection.cs
- LongValidatorAttribute.cs
- WinEventWrap.cs
- TreeNode.cs
- DataGrid.cs
- KnownTypes.cs
- SymbolPair.cs
- UrlMappingsModule.cs
- DbParameterCollection.cs
- URLMembershipCondition.cs
- JsonClassDataContract.cs
- TextDecorationCollectionConverter.cs
- GraphicsState.cs
- ExchangeUtilities.cs
- ResourceCodeDomSerializer.cs
- UseLicense.cs
- ToolboxDataAttribute.cs
- HasCopySemanticsAttribute.cs
- SqlExpressionNullability.cs
- Environment.cs
- EntityTemplateFactory.cs
- DataGridPageChangedEventArgs.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- HMACRIPEMD160.cs
- ReferencedType.cs
- SoapExtensionImporter.cs
- TextBoxBase.cs
- ToolStripControlHost.cs
- ContextStaticAttribute.cs
- SafeNativeMethodsMilCoreApi.cs
- RegexStringValidatorAttribute.cs
- GenericAuthenticationEventArgs.cs
- TcpTransportBindingElement.cs
- RemotingHelper.cs
- IntranetCredentialPolicy.cs
- HttpCacheParams.cs
- LinkArea.cs
- EventLogReader.cs
- UnsafeNativeMethods.cs
- columnmapkeybuilder.cs
- ClientTarget.cs
- TabPage.cs
- ObjectParameter.cs
- AudioException.cs
- SmtpFailedRecipientException.cs
- FrameworkElementFactoryMarkupObject.cs
- BevelBitmapEffect.cs
- DataGridViewLinkColumn.cs
- ViewStateModeByIdAttribute.cs
- mediaclock.cs
- ReaderContextStackData.cs
- WaitHandleCannotBeOpenedException.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- MimePart.cs
- ReceiveActivityDesigner.cs
- Pair.cs
- HandledMouseEvent.cs
- UTF7Encoding.cs
- SqlUdtInfo.cs
- FileAccessException.cs
- ByteStream.cs
- DataGridViewImageColumn.cs
- TextEffectCollection.cs
- MediaElement.cs
- MasterPageParser.cs
- Visual.cs
- InvokeProviderWrapper.cs
- NotificationContext.cs
- ObjectList.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SchemaElementDecl.cs
- TablePatternIdentifiers.cs
- VirtualizedItemProviderWrapper.cs
- PolyQuadraticBezierSegment.cs
- CompilerParameters.cs
- InvalidDataException.cs
- PaginationProgressEventArgs.cs
- DefaultPrintController.cs
- UserPreferenceChangedEventArgs.cs
- Label.cs
- WebPartConnectionsCancelVerb.cs
- OracleBFile.cs
- RuleSetReference.cs