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
- ToolStripContentPanelRenderEventArgs.cs
- HttpCapabilitiesSectionHandler.cs
- XmlElementList.cs
- Cursors.cs
- XmlEntityReference.cs
- CodeAttributeDeclarationCollection.cs
- XPathDocumentIterator.cs
- FormsAuthenticationModule.cs
- SmiRequestExecutor.cs
- TemplateParser.cs
- TransformerConfigurationWizardBase.cs
- CommandPlan.cs
- CallTemplateAction.cs
- InternalsVisibleToAttribute.cs
- LowerCaseStringConverter.cs
- SafeHandle.cs
- ViewManager.cs
- GridViewItemAutomationPeer.cs
- CommandEventArgs.cs
- IPCCacheManager.cs
- CqlGenerator.cs
- XmlReaderSettings.cs
- TextLine.cs
- SystemKeyConverter.cs
- EventWaitHandle.cs
- CompletionProxy.cs
- TextBox.cs
- Expression.cs
- HotSpotCollectionEditor.cs
- SingleAnimation.cs
- SafeArrayTypeMismatchException.cs
- HtmlLink.cs
- InheritablePropertyChangeInfo.cs
- ApplicationSecurityInfo.cs
- FormsAuthenticationModule.cs
- MenuItem.cs
- Stylesheet.cs
- XmlNavigatorStack.cs
- ClipboardData.cs
- PropertyGrid.cs
- SubpageParagraph.cs
- WCFServiceClientProxyGenerator.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- TableCellsCollectionEditor.cs
- ExpanderAutomationPeer.cs
- HatchBrush.cs
- CodeMemberProperty.cs
- LineBreak.cs
- StickyNoteContentControl.cs
- ViewEvent.cs
- sqlcontext.cs
- StorageComplexTypeMapping.cs
- Bookmark.cs
- CodeTypeMember.cs
- ChtmlCalendarAdapter.cs
- EventsTab.cs
- DESCryptoServiceProvider.cs
- CalendarDataBindingHandler.cs
- SqlConnection.cs
- HierarchicalDataBoundControl.cs
- UpdateInfo.cs
- CursorConverter.cs
- DataListAutoFormat.cs
- ForwardPositionQuery.cs
- errorpatternmatcher.cs
- TextContainerChangeEventArgs.cs
- DataFormats.cs
- TaskForm.cs
- DataGridViewColumnTypePicker.cs
- SchemaObjectWriter.cs
- String.cs
- WindowsTokenRoleProvider.cs
- Privilege.cs
- NeutralResourcesLanguageAttribute.cs
- Variable.cs
- StretchValidation.cs
- SystemIcons.cs
- RegistrySecurity.cs
- CorrelationManager.cs
- VoiceChangeEventArgs.cs
- HtmlEmptyTagControlBuilder.cs
- Drawing.cs
- DispatcherExceptionFilterEventArgs.cs
- CompositeClientFormatter.cs
- WebPartConnectionsConfigureVerb.cs
- FrameworkTemplate.cs
- FrameSecurityDescriptor.cs
- ReversePositionQuery.cs
- PackageDigitalSignature.cs
- OperationContext.cs
- BitmapData.cs
- ByteStreamMessageEncodingElement.cs
- TextRunTypographyProperties.cs
- ObjectComplexPropertyMapping.cs
- CodeDirectionExpression.cs
- FilterElement.cs
- ImageBrush.cs
- X509Extension.cs
- ITreeGenerator.cs
- fixedPageContentExtractor.cs