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
- BitmapEffectGroup.cs
- DataServiceQueryException.cs
- WorkflowTransactionService.cs
- DesignerAdapterUtil.cs
- PropertyPath.cs
- ExpanderAutomationPeer.cs
- TemplateBuilder.cs
- QilStrConcatenator.cs
- WebUtil.cs
- MessageQueueInstaller.cs
- GridSplitter.cs
- BrowserCapabilitiesFactory.cs
- StubHelpers.cs
- ToolStripLocationCancelEventArgs.cs
- StringInfo.cs
- XmlUtf8RawTextWriter.cs
- JavaScriptObjectDeserializer.cs
- Positioning.cs
- CompatibleIComparer.cs
- UriSectionData.cs
- TextLineBreak.cs
- SaveLedgerEntryRequest.cs
- OdbcConnectionOpen.cs
- ExtenderControl.cs
- BindableAttribute.cs
- ProxyGenerationError.cs
- Native.cs
- RSAOAEPKeyExchangeFormatter.cs
- ToolStripLabel.cs
- XmlCharacterData.cs
- RadioButtonBaseAdapter.cs
- RealProxy.cs
- SynchronizationLockException.cs
- RunInstallerAttribute.cs
- _SSPISessionCache.cs
- WebBaseEventKeyComparer.cs
- GridViewColumnHeader.cs
- Set.cs
- PaperSource.cs
- ComponentCommands.cs
- BitmapScalingModeValidation.cs
- SystemGatewayIPAddressInformation.cs
- ConditionalWeakTable.cs
- UrlAuthorizationModule.cs
- Walker.cs
- Utility.cs
- LongAverageAggregationOperator.cs
- ValueUtilsSmi.cs
- DataGridViewSortCompareEventArgs.cs
- InkCanvas.cs
- ExpressionBuilderContext.cs
- ReadOnlyCollectionBase.cs
- FileVersionInfo.cs
- ListCollectionView.cs
- GeneralTransform3DTo2D.cs
- CompositeFontFamily.cs
- TypeSource.cs
- OleDbErrorCollection.cs
- SizeAnimationClockResource.cs
- ResourceReferenceExpressionConverter.cs
- Property.cs
- SecurityResources.cs
- _NetworkingPerfCounters.cs
- GlobalizationSection.cs
- DataControlPagerLinkButton.cs
- Point4D.cs
- ActivationServices.cs
- EmissiveMaterial.cs
- AssemblyAssociatedContentFileAttribute.cs
- DynamicDataResources.Designer.cs
- TrackingQueryElement.cs
- SerializationSectionGroup.cs
- CategoryAttribute.cs
- ArrayMergeHelper.cs
- Ray3DHitTestResult.cs
- ImageField.cs
- AttributeProviderAttribute.cs
- AsyncOperationManager.cs
- DataGridViewCellValidatingEventArgs.cs
- HashSetEqualityComparer.cs
- Int64.cs
- WinInetCache.cs
- SystemIPGlobalProperties.cs
- FileIOPermission.cs
- ContainerFilterService.cs
- ExecutionEngineException.cs
- Stroke.cs
- ImageAttributes.cs
- ServicePoint.cs
- ValueSerializer.cs
- Helper.cs
- SymbolTable.cs
- SelectionWordBreaker.cs
- UnmanagedMemoryStream.cs
- CuspData.cs
- ISSmlParser.cs
- MobileSysDescriptionAttribute.cs
- SchemaImporterExtensionElement.cs
- RoleGroup.cs
- TreeIterators.cs