Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- XsltConvert.cs
- XmlLoader.cs
- Translator.cs
- ListViewItem.cs
- Add.cs
- NegationPusher.cs
- CqlGenerator.cs
- TraceXPathNavigator.cs
- AutomationAttributeInfo.cs
- LeftCellWrapper.cs
- EntityDataSourceChangingEventArgs.cs
- SimpleParser.cs
- CollectionViewGroup.cs
- CriticalHandle.cs
- TextSpanModifier.cs
- PaperSize.cs
- Application.cs
- OleDbError.cs
- DataGridViewButtonCell.cs
- VirtualPathData.cs
- SerialStream.cs
- MenuItemStyleCollection.cs
- Int16AnimationBase.cs
- WebContext.cs
- DataGridViewAddColumnDialog.cs
- ItemType.cs
- ToolStripDropDownItemDesigner.cs
- x509store.cs
- PeerResolver.cs
- ReachDocumentPageSerializer.cs
- HttpHandlerAction.cs
- UpdateExpressionVisitor.cs
- RequestUriProcessor.cs
- TypeReference.cs
- WebPartConnectionsCancelVerb.cs
- ConfigXmlCDataSection.cs
- DefaultValueAttribute.cs
- TableLayoutSettings.cs
- WindowsScroll.cs
- ProtocolsConfiguration.cs
- TextRangeEditTables.cs
- SerTrace.cs
- SmtpException.cs
- CountAggregationOperator.cs
- Model3DGroup.cs
- EnumValAlphaComparer.cs
- IndexOutOfRangeException.cs
- TrackingParameters.cs
- SqlLiftWhereClauses.cs
- SqlProviderManifest.cs
- RegexWorker.cs
- DelegatingTypeDescriptionProvider.cs
- OleDbCommand.cs
- CodeDOMUtility.cs
- DataGridViewTextBoxColumn.cs
- NativeRecognizer.cs
- TextUtf8RawTextWriter.cs
- OuterGlowBitmapEffect.cs
- RectangleF.cs
- ContextMarshalException.cs
- Internal.cs
- SafeSecurityHelper.cs
- AutomationAttributeInfo.cs
- SectionVisual.cs
- DateTimeStorage.cs
- PrintDialogException.cs
- Classification.cs
- MatrixCamera.cs
- CodeCommentStatement.cs
- CodeCastExpression.cs
- DescendentsWalkerBase.cs
- ICollection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- XsltLibrary.cs
- HostedHttpTransportManager.cs
- RemoveStoryboard.cs
- Validator.cs
- MinMaxParagraphWidth.cs
- SQLInt16Storage.cs
- SessionIDManager.cs
- ErrorReporting.cs
- ShaderRenderModeValidation.cs
- InkPresenter.cs
- StaticResourceExtension.cs
- TextReader.cs
- MonthCalendar.cs
- XPathEmptyIterator.cs
- HwndStylusInputProvider.cs
- webbrowsersite.cs
- EncoderFallback.cs
- DeflateEmulationStream.cs
- Line.cs
- HandleRef.cs
- TypefaceMap.cs
- DbParameterHelper.cs
- ResourceAttributes.cs
- ParagraphVisual.cs
- SqlClientWrapperSmiStream.cs
- XmlHierarchicalDataSourceView.cs
- UserMapPath.cs