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
- SecondaryViewProvider.cs
- SmtpFailedRecipientException.cs
- InfoCardProofToken.cs
- TypeConverterHelper.cs
- InputProcessorProfilesLoader.cs
- XamlReader.cs
- ElementsClipboardData.cs
- ElementProxy.cs
- FunctionImportMapping.cs
- SQLInt16.cs
- OleDbErrorCollection.cs
- ControlCollection.cs
- UnmanagedHandle.cs
- SystemPens.cs
- DBAsyncResult.cs
- RangeValuePattern.cs
- QueryContinueDragEvent.cs
- DoubleAnimationUsingPath.cs
- RelationshipConstraintValidator.cs
- AppearanceEditorPart.cs
- BehaviorEditorPart.cs
- Stack.cs
- TrimSurroundingWhitespaceAttribute.cs
- VirtualPath.cs
- DataGridViewColumnTypePicker.cs
- RijndaelManagedTransform.cs
- ButtonAutomationPeer.cs
- HtmlShimManager.cs
- AutomationEventArgs.cs
- UnknownWrapper.cs
- AddressUtility.cs
- Ipv6Element.cs
- ErrorHandlerModule.cs
- Exceptions.cs
- Duration.cs
- ElementHostPropertyMap.cs
- LocatorBase.cs
- GB18030Encoding.cs
- CheckPair.cs
- SHA256Managed.cs
- XsltLibrary.cs
- LookupNode.cs
- MultiSelector.cs
- ListControlDataBindingHandler.cs
- FacetDescription.cs
- BooleanKeyFrameCollection.cs
- TabletCollection.cs
- SystemFonts.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SubMenuStyle.cs
- HwndHost.cs
- ClaimSet.cs
- ByteAnimationBase.cs
- SafeRegistryHandle.cs
- StringConverter.cs
- FixUpCollection.cs
- User.cs
- StylusPlugInCollection.cs
- TableRow.cs
- SqlTransaction.cs
- RegexWorker.cs
- ProcessRequestArgs.cs
- InfocardClientCredentials.cs
- AtomicFile.cs
- PngBitmapDecoder.cs
- M3DUtil.cs
- HwndAppCommandInputProvider.cs
- Point3D.cs
- Int16KeyFrameCollection.cs
- SqlTransaction.cs
- ListBoxDesigner.cs
- EntitySqlQueryState.cs
- IdnMapping.cs
- QuotedPrintableStream.cs
- ReliableChannelFactory.cs
- DataBoundControl.cs
- PropertyValueUIItem.cs
- SeekStoryboard.cs
- PersonalizationEntry.cs
- Function.cs
- WizardPanel.cs
- _SpnDictionary.cs
- EntityDataSourceMemberPath.cs
- FormView.cs
- glyphs.cs
- BatchStream.cs
- ForEachAction.cs
- TypeValidationEventArgs.cs
- MethodBuilder.cs
- UnitySerializationHolder.cs
- XamlNamespaceHelper.cs
- AutomationAttributeInfo.cs
- Parser.cs
- CategoryAttribute.cs
- MessageContractExporter.cs
- Crypto.cs
- LicenseException.cs
- ProxyWebPart.cs
- shaperfactoryquerycacheentry.cs
- UnsafeNativeMethods.cs