Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Data / System / Data / Sql / SqlFacetAttribute.cs / 1 / 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 ) ] #if WINFSInternalOnly internal #else public #endif 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 ) ] #if WINFSInternalOnly internal #else public #endif 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
- ContainerFilterService.cs
- TrackingStringDictionary.cs
- SafeHandles.cs
- AsmxEndpointPickerExtension.cs
- XsdDateTime.cs
- TemplatePagerField.cs
- EdmScalarPropertyAttribute.cs
- XmlSchemaParticle.cs
- Binding.cs
- Rights.cs
- WaitHandleCannotBeOpenedException.cs
- PositiveTimeSpanValidatorAttribute.cs
- ScriptReferenceBase.cs
- DataPagerFieldCollection.cs
- ScriptResourceHandler.cs
- EntityClassGenerator.cs
- FirstMatchCodeGroup.cs
- IgnoreFlushAndCloseStream.cs
- AnimatedTypeHelpers.cs
- CacheMemory.cs
- Misc.cs
- EtwTrace.cs
- Storyboard.cs
- HashCoreRequest.cs
- X509Certificate.cs
- ServerValidateEventArgs.cs
- RequestContext.cs
- MultipartIdentifier.cs
- RequestDescription.cs
- MetabaseServerConfig.cs
- QueryOptionExpression.cs
- Calendar.cs
- AssemblyBuilder.cs
- MexTcpBindingElement.cs
- CacheDependency.cs
- DataSet.cs
- SecurityRequiresReviewAttribute.cs
- GridViewRowCollection.cs
- RoutedEventHandlerInfo.cs
- SoapFault.cs
- EditorPart.cs
- DynamicExpression.cs
- DirectoryLocalQuery.cs
- SafeFindHandle.cs
- EnumValidator.cs
- ChameleonKey.cs
- IdleTimeoutMonitor.cs
- MenuRenderer.cs
- SyntaxCheck.cs
- DropShadowBitmapEffect.cs
- OleDbRowUpdatingEvent.cs
- entityreference_tresulttype.cs
- Transform.cs
- TaiwanLunisolarCalendar.cs
- MessageSecurityOverHttpElement.cs
- WMICapabilities.cs
- AdjustableArrowCap.cs
- ParenthesizePropertyNameAttribute.cs
- RecognizerInfo.cs
- XmlDigitalSignatureProcessor.cs
- Calendar.cs
- IntellisenseTextBox.designer.cs
- AnnotationElement.cs
- GridPatternIdentifiers.cs
- System.Data_BID.cs
- ArraySubsetEnumerator.cs
- DataFormats.cs
- XmlSiteMapProvider.cs
- RotateTransform.cs
- ServiceNameElement.cs
- XmlProcessingInstruction.cs
- TextElementEnumerator.cs
- ScrollProviderWrapper.cs
- LocatorBase.cs
- HttpStreamFormatter.cs
- RC2.cs
- ToolboxCategoryItems.cs
- XPathExpr.cs
- FileDialogCustomPlacesCollection.cs
- Faults.cs
- ResourceSet.cs
- GeneralTransformCollection.cs
- HttpConfigurationContext.cs
- SplineKeyFrames.cs
- HTMLTextWriter.cs
- InvalidCommandTreeException.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- AbstractDataSvcMapFileLoader.cs
- JsonObjectDataContract.cs
- XmlNodeChangedEventArgs.cs
- DataMemberAttribute.cs
- SwitchExpression.cs
- MachinePropertyVariants.cs
- XhtmlBasicImageAdapter.cs
- MappingModelBuildProvider.cs
- RSAPKCS1SignatureDeformatter.cs
- IDReferencePropertyAttribute.cs
- DocumentAutomationPeer.cs
- StateDesigner.TransitionInfo.cs
- SmtpException.cs