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
- SafeJobHandle.cs
- AdCreatedEventArgs.cs
- DataSourceCache.cs
- WebScriptMetadataFormatter.cs
- ResourcesBuildProvider.cs
- OrderedEnumerableRowCollection.cs
- NameTable.cs
- PtsHost.cs
- CollectionTypeElement.cs
- NoClickablePointException.cs
- EraserBehavior.cs
- HuffCodec.cs
- Shape.cs
- DataBindEngine.cs
- SqlTriggerContext.cs
- WindowsSolidBrush.cs
- Composition.cs
- DateTimeUtil.cs
- Rect3DConverter.cs
- TypeBuilder.cs
- FileVersion.cs
- TraversalRequest.cs
- SpoolingTask.cs
- X509Utils.cs
- EntityUtil.cs
- HuffmanTree.cs
- CodeTypeMember.cs
- VisualProxy.cs
- Application.cs
- DataViewManager.cs
- ReachFixedDocumentSerializerAsync.cs
- TextCompositionEventArgs.cs
- DataGridViewControlCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- ValidatorCompatibilityHelper.cs
- RawStylusInputCustomData.cs
- XmlSchemaSet.cs
- UncommonField.cs
- XPathSelectionIterator.cs
- ToolboxItemSnapLineBehavior.cs
- TextBlock.cs
- PersonalizationStateInfoCollection.cs
- ToolboxBitmapAttribute.cs
- StyleCollection.cs
- Blend.cs
- NullableDecimalAverageAggregationOperator.cs
- BitmapPalettes.cs
- BamlTreeNode.cs
- InvokeHandlers.cs
- StagingAreaInputItem.cs
- OleDbCommandBuilder.cs
- HandledEventArgs.cs
- AvTrace.cs
- FixedSOMPageElement.cs
- XmlNamespaceDeclarationsAttribute.cs
- FloaterParagraph.cs
- GraphicsPath.cs
- SQLDecimalStorage.cs
- SafeFileMappingHandle.cs
- DateBoldEvent.cs
- SerializationEventsCache.cs
- RijndaelManaged.cs
- securitymgrsite.cs
- XmlQualifiedName.cs
- SmtpNetworkElement.cs
- VisualStates.cs
- DataFormats.cs
- _HelperAsyncResults.cs
- mediaeventshelper.cs
- AppModelKnownContentFactory.cs
- TemplateField.cs
- SplitterCancelEvent.cs
- DataFieldConverter.cs
- DateTimePicker.cs
- MimeParameters.cs
- _DynamicWinsockMethods.cs
- ActivationArguments.cs
- XmlEnumAttribute.cs
- WmpBitmapEncoder.cs
- remotingproxy.cs
- AssemblyAssociatedContentFileAttribute.cs
- TimeSpanSecondsConverter.cs
- TextTreeTextNode.cs
- BaseConfigurationRecord.cs
- AdornerLayer.cs
- PingOptions.cs
- PassportPrincipal.cs
- StateRuntime.cs
- HttpListenerRequest.cs
- DateTimePicker.cs
- FlowLayout.cs
- TabRenderer.cs
- DockProviderWrapper.cs
- HostedHttpRequestAsyncResult.cs
- DefaultClaimSet.cs
- DataGridViewCellEventArgs.cs
- CroppedBitmap.cs
- DataListItemEventArgs.cs
- LowerCaseStringConverter.cs
- SatelliteContractVersionAttribute.cs