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
- TabPanel.cs
- TextElementEditingBehaviorAttribute.cs
- WCFModelStrings.Designer.cs
- UriSection.cs
- CellCreator.cs
- Byte.cs
- DataGridTable.cs
- WebControlAdapter.cs
- DrawingImage.cs
- MessageRpc.cs
- MessageQueueEnumerator.cs
- Rules.cs
- RuntimeVariablesExpression.cs
- __Error.cs
- DetailsViewUpdatedEventArgs.cs
- EntityDataSourceSelectedEventArgs.cs
- Deflater.cs
- ImageBrush.cs
- DynamicQueryableWrapper.cs
- DataServiceQueryException.cs
- PropertiesTab.cs
- ComponentGlyph.cs
- OnOperation.cs
- TextBox.cs
- DriveInfo.cs
- SchemaElementLookUpTableEnumerator.cs
- TabPage.cs
- TypeUsage.cs
- BaseContextMenu.cs
- VirtualPathUtility.cs
- XamlSerializerUtil.cs
- HtmlValidatorAdapter.cs
- ApplyImportsAction.cs
- PaginationProgressEventArgs.cs
- DecoratedNameAttribute.cs
- HttpCookie.cs
- DoubleAnimationBase.cs
- ChtmlTextWriter.cs
- FormsAuthenticationUser.cs
- JavaScriptString.cs
- DataGridPageChangedEventArgs.cs
- PropertyMetadata.cs
- IsolationInterop.cs
- WebHttpBindingElement.cs
- ManageRequest.cs
- CorrelationManager.cs
- DataGridViewRow.cs
- BitmapEffectCollection.cs
- XdrBuilder.cs
- Selection.cs
- GC.cs
- ExpressionBuilderContext.cs
- UInt64.cs
- ElementProxy.cs
- DetailsViewDeletedEventArgs.cs
- LicenseException.cs
- MembershipSection.cs
- ContainerParagraph.cs
- Constraint.cs
- BaseDataBoundControl.cs
- DragEvent.cs
- BulletedList.cs
- ConstructorNeedsTagAttribute.cs
- WsdlServiceChannelBuilder.cs
- BitmapDownload.cs
- FormsAuthenticationCredentials.cs
- DbConnectionPool.cs
- TheQuery.cs
- loginstatus.cs
- GetPolicyDetailsRequest.cs
- ProxyWebPartConnectionCollection.cs
- dtdvalidator.cs
- IPipelineRuntime.cs
- XmlCharacterData.cs
- KnownBoxes.cs
- SettingsBindableAttribute.cs
- OracleRowUpdatingEventArgs.cs
- ResXFileRef.cs
- ButtonPopupAdapter.cs
- XmlCustomFormatter.cs
- CheckBoxBaseAdapter.cs
- OdbcReferenceCollection.cs
- Int16AnimationUsingKeyFrames.cs
- HttpHandlersSection.cs
- ErrorFormatter.cs
- EventWaitHandle.cs
- _ContextAwareResult.cs
- CancellableEnumerable.cs
- Cell.cs
- DataControlImageButton.cs
- EntityConnection.cs
- ScrollPatternIdentifiers.cs
- ProgressBar.cs
- NativeMethods.cs
- _UncName.cs
- BulletedListEventArgs.cs
- Site.cs
- XmlDownloadManager.cs
- DynamicValueConverter.cs
- TextCollapsingProperties.cs