Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TreeWalker.cs
- WebBrowserProgressChangedEventHandler.cs
- BooleanExpr.cs
- HebrewNumber.cs
- TextSpanModifier.cs
- RenderDataDrawingContext.cs
- QilPatternFactory.cs
- MimeTextImporter.cs
- DetailsViewCommandEventArgs.cs
- DSASignatureDeformatter.cs
- MetadataPropertyAttribute.cs
- X509CertificateValidator.cs
- TypefaceMap.cs
- ToolStripSystemRenderer.cs
- TransformerInfoCollection.cs
- TypedRowHandler.cs
- TimersDescriptionAttribute.cs
- CredentialSelector.cs
- NamespaceQuery.cs
- Timer.cs
- ThrowHelper.cs
- UpdatePanelControlTrigger.cs
- SmiXetterAccessMap.cs
- RealProxy.cs
- UseAttributeSetsAction.cs
- MobilePage.cs
- AmbientValueAttribute.cs
- AppearanceEditorPart.cs
- SolidBrush.cs
- XmlSerializationReader.cs
- BufferedGraphicsContext.cs
- Single.cs
- PersonalizationDictionary.cs
- ConversionValidationRule.cs
- CodeNamespaceImport.cs
- Line.cs
- GeneralTransform.cs
- TableSectionStyle.cs
- TextEndOfSegment.cs
- GacUtil.cs
- BehaviorEditorPart.cs
- UInt32Storage.cs
- StatusBar.cs
- RecordsAffectedEventArgs.cs
- MatrixStack.cs
- DynamicControlParameter.cs
- SqlExpander.cs
- MailBnfHelper.cs
- ObjectQuery_EntitySqlExtensions.cs
- IteratorFilter.cs
- PersonalizationAdministration.cs
- KeyValueInternalCollection.cs
- Parameter.cs
- TypeValidationEventArgs.cs
- HttpListenerRequest.cs
- RelationshipConstraintValidator.cs
- TileBrush.cs
- DataServiceContext.cs
- X509CertificateTrustedIssuerElementCollection.cs
- VectorConverter.cs
- SessionPageStatePersister.cs
- XamlReaderHelper.cs
- NotifyIcon.cs
- ComplexLine.cs
- FormViewPageEventArgs.cs
- DataBindingsDialog.cs
- StringReader.cs
- Unit.cs
- LassoSelectionBehavior.cs
- SystemParameters.cs
- OperatingSystem.cs
- EnumerableValidator.cs
- AutomationProperties.cs
- SerialStream.cs
- AdornerHitTestResult.cs
- CssStyleCollection.cs
- Stroke.cs
- RelationshipEnd.cs
- DataGridItemAutomationPeer.cs
- MenuBindingsEditorForm.cs
- DesignerTransaction.cs
- ProfilePropertyNameValidator.cs
- SchemaInfo.cs
- ConfigXmlWhitespace.cs
- IImplicitResourceProvider.cs
- SoapFaultCodes.cs
- FullTextBreakpoint.cs
- DataGridViewBindingCompleteEventArgs.cs
- DefaultValueTypeConverter.cs
- Table.cs
- UseLicense.cs
- Point3DAnimationUsingKeyFrames.cs
- EarlyBoundInfo.cs
- ConstNode.cs
- SimpleTextLine.cs
- ToolStripSeparatorRenderEventArgs.cs
- ActivityBindForm.Designer.cs
- PanelDesigner.cs
- FunctionMappingTranslator.cs
- EdmFunction.cs