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
- DropShadowBitmapEffect.cs
- ResourcesBuildProvider.cs
- Stylus.cs
- ReadOnlyPropertyMetadata.cs
- FixedFlowMap.cs
- ContactManager.cs
- ColorMap.cs
- FixedFlowMap.cs
- FormParameter.cs
- TransformerInfoCollection.cs
- PageBuildProvider.cs
- AttributeProviderAttribute.cs
- TraceData.cs
- StringDictionary.cs
- InputReportEventArgs.cs
- WebPartTransformer.cs
- SymDocumentType.cs
- ExpressionEditorAttribute.cs
- NotSupportedException.cs
- LocalBuilder.cs
- HttpAsyncResult.cs
- RemotingAttributes.cs
- LoadGrammarCompletedEventArgs.cs
- Matrix3DConverter.cs
- EntityTypeBase.cs
- XmlSchemaChoice.cs
- NativeMethods.cs
- ObjectDataSourceDisposingEventArgs.cs
- InkCollectionBehavior.cs
- XPathScanner.cs
- WithStatement.cs
- WindowsProgressbar.cs
- DataGridViewColumnCollection.cs
- ToolStripOverflow.cs
- SQLDecimalStorage.cs
- COSERVERINFO.cs
- ResXFileRef.cs
- XmlBaseReader.cs
- EditorPartCollection.cs
- DecimalAnimationBase.cs
- TextEditorTables.cs
- CatalogPartDesigner.cs
- FreezableCollection.cs
- RSAPKCS1SignatureFormatter.cs
- sqlstateclientmanager.cs
- AddingNewEventArgs.cs
- Stack.cs
- AddInProcess.cs
- BuildResult.cs
- InvalidWorkflowException.cs
- ImageEditor.cs
- AlignmentXValidation.cs
- DoubleAnimationUsingPath.cs
- NumberAction.cs
- ImageList.cs
- DataBindingCollectionEditor.cs
- Ipv6Element.cs
- DataSourceControl.cs
- XsdCachingReader.cs
- List.cs
- OleDbCommandBuilder.cs
- ConnectionStringsSection.cs
- CustomTypeDescriptor.cs
- RightsManagementSuppressedStream.cs
- OracleDataReader.cs
- ConfigXmlDocument.cs
- TableItemStyle.cs
- GeometryGroup.cs
- FileAuthorizationModule.cs
- FlowDocumentFormatter.cs
- Thread.cs
- PageStatePersister.cs
- RuntimeConfigurationRecord.cs
- TraceInternal.cs
- AnimationLayer.cs
- XmlSchemaValidationException.cs
- RedirectionProxy.cs
- XmlSchemaAny.cs
- ClientSession.cs
- Parser.cs
- UnmanagedHandle.cs
- UiaCoreTypesApi.cs
- HMACSHA512.cs
- OlePropertyStructs.cs
- ImageBrush.cs
- SettingsPropertyValue.cs
- ControlAdapter.cs
- HybridWebProxyFinder.cs
- Int64KeyFrameCollection.cs
- LocatorGroup.cs
- Clause.cs
- XmlNodeList.cs
- Thumb.cs
- EntityDataSourceColumn.cs
- SvcMapFileSerializer.cs
- DynamicDiscoSearcher.cs
- TraversalRequest.cs
- ReachUIElementCollectionSerializerAsync.cs
- FontStretches.cs
- KeySpline.cs